Changeset 142 for prdatasets/pr_getdata.m
- Timestamp:
- 01/05/20 23:22:59 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
prdatasets/pr_getdata.m
r140 r142 7 7 % By default DSET is COMMAND.mat with COMMAND the name of the calling 8 8 % m-file. If this is not available in the directory of COMMAND the URL will 9 % be downloaded. If ASK = true (default), the user is asked for approval.9 % be downloaded. If ASK = true, the user is asked for approval. 10 10 % If given, SIZE (in MByte) is displayed in the request. 11 11 % … … 49 49 url = ['http://prtools.tudelft.nl/prdatasets/' name '.mat']; 50 50 end 51 [ dummy,uname,ext] = fileparts(url);51 [~,uname,ext] = fileparts(url); 52 52 53 53 if isempty(name) … … 91 91 out = []; 92 92 end 93 else94 a = dset;95 93 end 96 94 … … 120 118 121 119 % make sure we check for a matfile 122 [ dummy,dummy,ext] = fileparts(dset);120 [~,~,ext] = fileparts(dset); 123 121 if isempty(ext) 124 122 dsetmat = [dset '.mat']; … … 145 143 end 146 144 elseif exist(dset,'dir') == 7 147 [ dummy,dfile] = fileparts(dset);145 [~,dfile] = fileparts(dset); 148 146 if exist(fullfile(dset,[dfile '.mat']),'file') == 2 149 147 out = prdatafile(dset);
Note: See TracChangeset
for help on using the changeset viewer.