Javatpoint Logo
Javatpoint Logo

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

MATLAB if-elseif-else...end statement

Example1:

Output:

n = 9
you are younger





Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA