
how can i build logic in simulink model when statement is if output >=1 then the input should change its value to 0. by using feedback control loop system?
1 回表示 (過去 30 日間)
古いコメントを表示
suppose (0,1,2,3,4) are switches, if my output come as 1 then the feedback should go to switch 0.
0 件のコメント
回答 (1 件)
Sam Chak
2022 年 7 月 21 日
I see the piecewise function as the mathematical equivalent to the logic. For example:
x = linspace(-3, 3, 6001);
s = 1 - heaviside(x - 1);
plot(x, s), grid on, ylim([-0.5 1.5])
Otherwise, you can also use the block that is similar to if-else statement.

0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Classical Control Design についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
