Tuesday, March 02, 2010

Request user input in MATLAB

Wait for typing from keyboard

var = input('what is the value:\n');
filename = input ('what is the name?', 's');

 

if isempty(filename)

filename = 'default.dat'
end


No comments:

Post a Comment