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 | |
3 | function varargout = pr_dataset(varargin) |
4 | |
5 | varargout = cell(1,nargout); |
6 | name = varargin{1}; |
7 | if ischar(name) |
8 | if isempty(fileparts(name)) |
9 | dirr = fileparts(which(callername)); |
10 | name = fullfile(dirr,name); |
11 | varargin{1} = name; |
12 | end |
13 | end |
14 | if floor(prversion) == 4 |
15 | [varargout{:}] = dataset(varargin{:}); |
16 | else |
17 | [varargout{:}] = prdataset(varargin{:}); |
18 | end |
Note: See TracBrowser
for help on using the repository browser.