You can use the menu in the while loop as follows:
while menu('Information Correct?','Yes','No') == 2
wrong = menu('What is Wrong?','Name','Age','City','State','Zip');
switch wrong
case 1
Name = input('Enter your name: ','s');
case 2
Age = input('Enter your age: ');
case 3
City = input('Enter your City: ','s');
case 4
State = input('Enter your State: ','s');
case 5
Zip = input('Enter you Zip code: ');
end
end
fprintf('Nice Work! \n')
Best Answer