在perprosprity 里面::设置max min,可以进行对行显示
否则和消失。
按钮点击打开文件:
然后再edit显示出代码
[filename pathname]=uigetfile({'*.txt','txt-file(*.txt)';'*.*','All the files(*.*)'},'Choose a file');
if isequal(filename,0)||isequal(pathname,0);h=msgbox ('Please choose a file!','Warning','warn');
return;
else
% [FileName,PathName] = uigetfile('*.KGF','Select the Data file');
path2=fullfile(pathname,filename)
fidin=fopen(path2); %打开文件
if ~feof(fidin)
tline=fgetl(fidin);
str=[tline,10]
end
while ~feof(fidin)
tline=fgetl(fidin);
str1=[tline,10]
str=[str,str1]
end
set(handles.editCode,'string',str1)