Changeset 153 for prdatasets/pr_download.m
- Timestamp:
- 01/12/20 23:00:36 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
prdatasets/pr_download.m
r137 r153 75 75 function [a,new] = pr_download(url,datname,varargin) 76 76 77 %% make sur there is a data subdir 78 persistent DATADIREXISTS 79 if isempty(DATADIREXISTS) 80 datasubdir = fullfile(fileparts(which(mfilename)),'data'); 81 if exist(datasubdir,'dir') ~= 7 82 mkdir(datasubdir); 83 end 84 DATADIREXISTS = true; 85 end 86 87 %% 77 88 if nargin >= 3 78 89 % this can be removed when all mfiles in prdatasets call the new version
Note: See TracChangeset
for help on using the changeset viewer.