little function to ask user for number, with default
0001 % little function to ask user for number, with default 0002 function o=asks(s,i); 0003 as=[s,'(default=',i,'):']; 0004 reply=input(as, 's'); 0005 if isempty(reply) reply=i; end 0006 o=reply; 0007 end