Error due to variable size data in Simulink Matlab function block

12 vues (au cours des 30 derniers jours)
Mehrdad
Mehrdad le 14 Août 2015
Modifié(e) : Mehrdad le 14 Août 2015
Hi all, I have a similar problem due to variable size data in Simulink Matlab function block. As a simple test, I tried to run the following code (as it is already suggested) but it doesn't work either in R2013b or R2014b version. Is there any suggestion for me?
function y = myfun(n)
coder.varsize('y', [1 100]); %n must never exceed 100
y = zeros(1,n);

Réponses (0)

Catégories

En savoir plus sur Simulink Functions dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by