Ignore:
Timestamp:
01/12/20 23:00:36 (5 years ago)
Author:
bduin
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • prdatasets/pr_download_uci.m

    r151 r153  
    3131
    3232function varargout = pr_download_uci(name,varargin)
    33 %%
     33%% make sur there is a dta subdir
     34persistent DATADIREXISTS
     35if isempty(DATADIREXISTS)
     36  datasubdir = fullfile(fileparts(which(mfilename)),'data');
     37  if exist(datasubdir,'dir') ~= 7
     38    mkdir(datasubdir);
     39  end
     40  DATADIREXISTS = true;
     41end
    3442
    3543%% handle old format
Note: See TracChangeset for help on using the changeset viewer.