Ignore:
Timestamp:
01/11/20 00:14:42 (5 years ago)
Author:
bduin
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • prdatasets/pr_loadmatfile.m

    r137 r151  
    2424  name = pr_callername;
    2525end
    26 matfile = fullfile(fullfile(fileparts(which(name)),'data'),name);
     26matfile = fullfile(fullfile(fileparts(which(mfilename)),'data'),name);
     27if exist([matfile '.mat'],'file') ~= 2,
     28  return
     29end
    2730
    2831if nargout == 1
    29   varargout{1} = loadmatf([matfile '.mat']);
     32%   varargout{1} = loadmatf([matfile '.mat']);
     33  varargout{1} = file2dset([matfile '.mat']);
    3034else
    3135  for i=1:nargout
    32     varargout{i} = loadmatf([matfile '_' num2str(i) '.mat']);
     36%     varargout{i} = loadmatf([matfile '_' num2str(i) '.mat']);
     37    varargout{i} = file2dset([matfile '_' num2str(i) '.mat']);
    3338  end
    3439end
Note: See TracChangeset for help on using the changeset viewer.