loaddata.asv

来自「一些自已编写的SVM应用程序,对初学者很有启发意义,」· ASV 代码 · 共 22 行

ASV
22
字号
function H=LoadData()

%handles.pushbutton1=get(hObject,'Value');
%data=get( gcf,'UserData');
[name,path]=uigetfile('*.mat','Open file');
 if name~=0,
      file.pathname=strcat(path,name); 
      file.path=path;
      file.name=name;
 %    if checkdat(file.pathname,DATA_IDENT,2,[0 0])==1,  
     if check2ddata( file.pathname ), % check2ddata( file.pathname ),
         %set(data.pushbutton1,'UserData',file);
         set(gcf,'UserData',file);
      %  SVM('loadsets', gcf);
      Addpath('');
      H=loadsets(gcf);
      %  SVM('reset', gcf);
      reset(gcf);
      else
         errordlg('This file does not contain required data.','Bad file','modal'); 
      end
   end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?