在窗口显示
地址 https://blog.csdn.net/dddxxxx/article/details/80290548
function showlogfile(logfile)
% logfile='K:\Data\Argo\ok\yearly\2014\05\1900726_236.dat';
fid=fopen(logfile,'r');
if fid==-1
fprintf('erro:\n%s can not open\n',logfile);
end
fprintf('\n---------------%s---------------- \n',logfile);
tline=fgetl(fid);
while ischar(tline)
disp(tline);
tline=fgetl(fid);
end
fclose(fid);
end