Changeset 153


Ignore:
Timestamp:
01/12/20 23:00:36 (5 years ago)
Author:
bduin
Message:
 
Location:
prdatasets
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • prdatasets/pr_download.m

    r137 r153  
    7575function [a,new] = pr_download(url,datname,varargin)
    7676
     77%% make sur there is a data subdir
     78persistent DATADIREXISTS
     79if isempty(DATADIREXISTS)
     80  datasubdir = fullfile(fileparts(which(mfilename)),'data');
     81  if exist(datasubdir,'dir') ~= 7
     82    mkdir(datasubdir);
     83  end
     84  DATADIREXISTS = true;
     85end
     86
     87%%
    7788if nargin >= 3
    7889  % this can be removed when all mfiles in prdatasets call the new version
  • 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
  • prdatasets/pr_showdsets.m

    r151 r153  
    11%PR_SHOWDSETS Show datasets and store results in DSET
     2
     3global ASK
     4ASK = false;
    25
    36forget = {'Contents','mfeat_all','check_','pr_'};
Note: See TracChangeset for help on using the changeset viewer.