1 function value=input_num(prompt,default,force)
2 % value=input_num(prompt,default)
3 % numeric input with default
4 % if force present and true, do not ask and use default in any case
5 if exist('force','var'),
11 disp(['Enter ',prompt])
12 s=['[',num2str(default),'] '];