How to read from the console in MATLAB?

How to read a line or character from MATLAB console (command window)?

+3
source share
1 answer

See input request for full reference

reply = input('Do you want more? Y/N [Y]: ', 's');
if isempty(reply)
    reply = 'Y';
end
+11
source

Source: https://habr.com/ru/post/1765984/


All Articles