How do I read a string or character from MATLAB console (command window)?
+6
A:
See Request input for the complete reference
reply = input('Do you want more? Y/N [Y]: ', 's');
if isempty(reply)
reply = 'Y';
end
zellus
2010-09-22 11:05:03
that's it! answered!
flai
2010-09-22 11:12:37
@flai: so click the checkmark next to the answer to accept it.
Marc
2010-09-22 12:47:50