Info

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

Why is the state of action subsystem checked in generated code

1 回表示 (過去 30 日間)
Xiaohong shen
Xiaohong shen 2016 年 10 月 11 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hello,
I just worte a matlab level-2 function and created a simple simulink model, refer the figures.
The code generator creates the following code:
The "if statements" at line 43 and 47 are absolutely unnecessary. They just compares the logic state differen between the current and previous function call.
I am sure there is something wrong configed within my matlab level-2 function. But I don't know what.
please help me to eliminate the unnecessary code lines

回答 (0 件)

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

Community Treasure Hunt

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

Start Hunting!

Translated by