Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Eliminating zero&negative roots in Embedded Matlab Function

1 回表示 (過去 30 日間)
Amro
Amro 2014 年 5 月 24 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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....

回答 (0 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by