simulink-function block
1 次查看(过去 30 天)
显示 更早的评论
I have values of input varied with time when i put a function in simulink, it only excute the first part


Any advice
0 个评论
采纳的回答
Paul
2021-9-8
This line (and others like it) doesn't do what you think it does:
68.832 < u <= 200
Consider:
u = 203;
68.832 < u <= 200
This statement evalautes to true becasue it's really doing two separate operations equivalent to:
temp = 68.32 < u
temp < 200
In short what you need is:
68.32 < u && u <= 200
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!