Ignore:
Timestamp:
01/05/20 23:22:59 (5 years ago)
Author:
bduin
Message:

Updated collection of datasets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • prdatasets/pr_getdata.m

    r140 r142  
    77% By default DSET is COMMAND.mat with COMMAND the name of the calling
    88% 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.
    1010% If given, SIZE (in MByte) is displayed in the request.
    1111%
     
    4949  url = ['http://prtools.tudelft.nl/prdatasets/' name '.mat'];
    5050end
    51 [dummy,uname,ext] = fileparts(url);
     51[~,uname,ext] = fileparts(url);
    5252
    5353if isempty(name)
     
    9191    out = [];
    9292  end
    93 else
    94   a = dset;
    9593end
    9694 
     
    120118
    121119% make sure we check for a matfile
    122 [dummy,dummy,ext] = fileparts(dset);
     120[~,~,ext] = fileparts(dset);
    123121if isempty(ext)
    124122  dsetmat = [dset '.mat'];
     
    145143  end
    146144elseif exist(dset,'dir') == 7
    147   [dummy,dfile] = fileparts(dset);
     145  [~,dfile] = fileparts(dset);
    148146  if exist(fullfile(dset,[dfile '.mat']),'file') == 2
    149147    out = prdatafile(dset);
Note: See TracChangeset for help on using the changeset viewer.