In Simulink, when a condition is met, I want to keep a constant result even when this condition ends.
4 ビュー (過去 30 日間)
古いコメントを表示
In, Simulink; If the condition u1 > u2 is achieved, I want to keep sending the output of u1 > u2 even if u1 < u2.
In Code, like break.
0 件のコメント
回答 (1 件)
Muthukumar Ganesan
2022 年 8 月 21 日
Hi,
Please refer to the attachment.
Hope you are referring to this logic. Thanks
Static Temp=0;
if (u1>u2 && Temp !=1)
Temp = 1;
if (Temp == 1)
Out = u1>u2;
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Simulink Environment Customization についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!