实现功能:
以对话框弹出形式,打开和读取指定文件,不用提前输入文件名
代码:
[filename,pathname]=uigetfile('*.**N','读取GPS卫星广播星历文件');
fid1=fopen(strcat(pathname,filename),'rt');
if(fid1==-1)
msgbox('Input File or Path is not correct','warning ','warn');
return;
end
示例:
实现功能:
以对话框弹出形式,打开和读取指定文件,不用提前输入文件名
代码:
[filename,pathname]=uigetfile('*.**N','读取GPS卫星广播星历文件');
fid1=fopen(strcat(pathname,filename),'rt');
if(fid1==-1)
msgbox('Input File or Path is not correct','warning ','warn');
return;
end
示例: