The user is told to input an integer between 1 and 59 but I want an error message to display if the value they enter is not an integer. This is what I have so far:
prompt = {'Enter your first integer between 1 and 59'}; dlg_title = 'User inputs';num_lines = 1;answer = inputdlg(prompt,dlg_title,num_lines);u=str2double(answer{1});
Best Answer