Real root filtering using Embedded matlab function
Afficher commentaires plus anciens
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
Réponses (0)
Catégories
En savoir plus sur Texas Instruments C2000 Processors dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!