Real root filtering using Embedded matlab function
显示 更早的评论
Hello,
I have used an embedded matlab function in simulink to select the real root from previous block. Following is the code that I have written in this block: function y = clipping (u) coder.varsize('y',[1 4]); thresh = 10*eps; y= real(u(~isnan(u) & abs(imag(u)) < thresh));
the essential point is y should be vary from 2 roots to 4
but I have the following Error: Output 'y' (#231) has variable size but the upper bound is not specified; explicit upper bound must be provided.
Best Regards, Amro
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Texas Instruments C2000 Processors 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!