source: prdatasets/pr_dataset.m @ 130

Last change on this file since 130 was 129, checked in by bduin, 6 years ago
File size: 432 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    dirr = fileparts(which(callername));
10    name = fullfile(dirr,name);
11    varargin{1} = name;
12  end
13end   
14if floor(prversion) == 4
15  [varargout{:}] = dataset(varargin{:});
16else
17  [varargout{:}] = prdataset(varargin{:});
18end
Note: See TracBrowser for help on using the repository browser.