Tagged: elseif

Matlab Live Editor

Programming and Scripts

Scripts To create a script, use the edit command, edit mysphere This command opens a blank file named mysphere.m. Enter some code that creates a unit sphere, doubles the radius, and plots the results: [x,y,z] = sphere;...

elseif

elseif IF statement condition. elseif is used with IF. The statements after the elseif are executed if the expression is true and all the preceding IF and elseif expressions are false. An expression is...

if

if if statement condition. The general form of the if statement is if expression statements ELSEIF expression statements ELSE statements END The statements are executed if the real part of the expression has all...

else

else Used with IF. else is used with IF. The statements after the else are executed if all the preceding IF and ELSEIF expressions are false. The general form of the IF statement is...