Using an ELSEIF statement under another IF
Ältere Kommentare anzeigen
Hi,
Is it possible to check for a condition, and if that condition is true, check for more? If so, can you please explain? Here's an example of what I mean
if input < 1
if input2 < 1
% then do this
if input2 < 2
% then do this
end
1 Kommentar
bio lim
am 28 Nov. 2016
Yes, it's possible!
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Simulink finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!