Error due to variable size data in Simulink Matlab function block
1 次查看(过去 30 天)
显示 更早的评论
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);
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Programmatic Model Editing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!