Using IF block in Simulink
显示 更早的评论
I'm developing one simulink model for an algorithm which uses the IF condition. Its in some form as follows:
if(u1>u2 && u3<4)
{some action}
elseif(u1<u2 || u1+u2>u3)
{some action}
end
How can I deal with this kind of situation in Simulink?
回答(2 个)
Azzi Abdelmalek
2016-7-15
0 个投票
There are many solutions depending on your exact problem, what kind of actions? you can use switch blocks or the If block
Walter Roberson
2016-7-15
0 个投票
类别
在 帮助中心 和 File Exchange 中查找有关 Modeling 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!