views:

53

answers:

1

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
that's it! answered!
flai
@flai: so click the checkmark next to the answer to accept it.
Marc