www.pudn.com > Kalman_matlab00000.rar > frommatfile_callback.m, change:2003-10-29,size:457b


function frommatfile_callback 
[fname,pname]=uigetfile('*.mat','Initialize From Mat File'); 
if ~fname 
    return 
end 
 
 
for i=1:length(fname)%get the file name without the extension 
    if fname(i)=='.' 
        break; 
    end 
    name(i)=fname(i); 
end 
 
load([pname,name]); 
 
save inidata A B H Q R P0 X0;%you should specify the variables in the stand-alone exe file  
 
CI=findobj(gcf,'tag','compo1'); 
set(CI,'userdata',[]); 
 
generatezk;