function choice = getUserInput()

% GETINPUT return the user's choice of analysis

disp('Choice of input:');
disp('(1) Generate all plots for all sizes');
disp('(2) Generate a plots for a specific size');
disp('(q) Quit the program');
choice = input('Enter 1, 2, or q: ','s');
while(length(choice)~=1 | ~(choice=='1' | choice=='2' | choice=='q'))
choice = input('No! You must choose either 1, 2, or q: ','s');
end