www.pudn.com > Kalman_matlab00000.rar > time_callback.m, change:2003-10-25,size:354b


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;