Changeset 151 for prdatasets/pr_loadmatfile.m
- Timestamp:
- 01/11/20 00:14:42 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
prdatasets/pr_loadmatfile.m
r137 r151 24 24 name = pr_callername; 25 25 end 26 matfile = fullfile(fullfile(fileparts(which(name)),'data'),name); 26 matfile = fullfile(fullfile(fileparts(which(mfilename)),'data'),name); 27 if exist([matfile '.mat'],'file') ~= 2, 28 return 29 end 27 30 28 31 if nargout == 1 29 varargout{1} = loadmatf([matfile '.mat']); 32 % varargout{1} = loadmatf([matfile '.mat']); 33 varargout{1} = file2dset([matfile '.mat']); 30 34 else 31 35 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']); 33 38 end 34 39 end
Note: See TracChangeset
for help on using the changeset viewer.