l = input('Enter your answer: ','s')
if l == 'y' || l == 'Y'
disp('Ok, continuing.')
elseif l == 'n' || l == 'N'
disp('Ok, halting.')
else
disp('Error!')
end
I believe it is because I am using the character input on line 1. When I just make it: l = input('Enter your answer: '), it runs ok. I have also run into this problem with other scripts that require the user to input a character. Ive tried re-installing Freemat, rebooting my computer, and renaming the files with no luck.
Can anyone help me with this?
Thank you!
Luke