source: prdatasets/pr_dataset.m @ 131

Last change on this file since 131 was 131, checked in by bduin, 6 years ago
File size: 486 bytes
Line 
1%PR_DATASET Switch between dataset and prdataset
2
3function varargout = pr_dataset(varargin)
4
5varargout = cell(1,nargout);
6name = varargin{1};
7if ischar(name)
8  if isempty(fileparts(name))
9    % add dir of calling function if no dir is given
10    dirr = fileparts(which(callername));
11    name = fullfile(dirr,name);
12    varargin{1} = name;
13  end
14end   
15if floor(prversion) == 4
16  [varargout{:}] = dataset(varargin{:});
17else
18  [varargout{:}] = prdataset(varargin{:});
19end
Note: See TracBrowser for help on using the repository browser.