simulink-function block
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I have values of input varied with time when i put a function in simulink, it only excute the first part
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/733154/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/733159/image.jpeg)
Any advice
0 Commenti
Risposta accettata
Paul
il 8 Set 2021
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
Più risposte (0)
Vedere anche
Categorie
Scopri di più su General Applications in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!