77
MATLAB if-elseif-else…end statement
If we have more than one option or condition to check, then use elseif keyword.
Syntax:
Flowchart of if…elseif… else…end Statements
Example1:
Output:
n = 9 you are younger
Next TopicMATLAB nested if-else