time_callback.m
上传用户:jspk663
上传日期:2013-08-19
资源大小:232k
文件大小:0k
源码类别:

matlab例程

开发平台:

Matlab

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