- function time_callback
- prompt={'Start Time:','Stop Time:'};
- title='Simulation Time';
- lines=[1 1]';
- def={'0','1000'};
- answer=inputdlg(prompt,title,lines,def);
- t=[str2num(answer{1}),str2num(answer{2})];
- set(gcbo,'userdata',t);
- BIV=findobj(gcf,'tag','axis');%uicontrol Set Axis
- m=get(BIV,'userdata');
- set(BIV,'userdata',[t, m(3) ,m(4)]);
- setaxis;