Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Eliminating zero&negative roots in Embedded Matlab Function

3 vues (au cours des 30 derniers jours)
Amro
Amro le 24 Mai 2014
Clôturé : MATLAB Answer Bot le 20 Août 2021
Hello,
I have used an embedded matlab function in simulink to Eliminate zero&negative roots in the input vector(u). Following is the code that I have written in this block:
function y = clipo(u) u(u <= 0) = []; coder.varsize('y',4); y=u;
and without coder.varsize('y',4);
But the error Dimension 2 is fixed on the left-hand side but varies on the right ([1 x 4] ~= [1 x :?]).
has shown
Thanks ahead....

Réponses (0)

Cette question est clôturée.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by