I'll paste my script, but I was wondering how to change my switch statement to a while loop. With the switch if the user enters incorrect info, they can only correct one piece of it. If i make a while loop then I want the user to be able to correct as much as they want. Do i need a while loop for each piece of info?
MATLAB: Changing switch statement to while loop
while loop
Related Question
- ‘break’ in ‘while’ loop
- Hi all , i am confuse about how to take a city name into a variable through “input” command . Here i want to take London city name .please correct this code .Error using input Undefined function or variable ‘London’.
- While Loop Question – Will not Properly Execute
- Switch function to output number of days in a month
- What loop to use to make the code\input repeat again
- How to convert this to a for loop
- Close a message box in a while loop
- How to use for loop
Best Answer