source: prdatasets/pr_dataset.m @ 129

Last change on this file since 129 was 129, checked in by bduin, 6 years ago
File size: 432 bytes
RevLine 
[91]1%PR_DATASET Switch between dataset and prdataset
[81]2
[91]3function varargout = pr_dataset(varargin)
[81]4
[91]5varargout = cell(1,nargout);
[129]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   
[91]14if floor(prversion) == 4
15  [varargout{:}] = dataset(varargin{:});
[81]16else
[91]17  [varargout{:}] = prdataset(varargin{:});
[81]18end
Note: See TracBrowser for help on using the repository browser.