gistlib
main.muserInput = ''; while ~(strcmpi(userInput, 'y') || strcmpi(userInput, 'n')) userInput = input('Enter y or n: ', 's'); end disp('Valid input entered'); 155 chars6 lines
userInput = ''; while ~(strcmpi(userInput, 'y') || strcmpi(userInput, 'n')) userInput = input('Enter y or n: ', 's'); end disp('Valid input entered');
gistlibby LogSnag