Hi all
I am just learning MATlab and could use some advice
I am trying to use an if statement where 1= something and 2= something else, my concern is say the user inputs a value other than 1 or 2 the if statement ends.
Is there a way to restart the if statement if the user inputs a value greater than 2??
Thanks
I am just learning MATlab and could use some advice
I am trying to use an if statement where 1= something and 2= something else, my concern is say the user inputs a value other than 1 or 2 the if statement ends.
Is there a way to restart the if statement if the user inputs a value greater than 2??
Thanks