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 | % 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
|
---|
14 | end
|
---|
15 | if floor(prversion) == 4
|
---|
16 | [varargout{:}] = dataset(varargin{:});
|
---|
17 | else
|
---|
18 | [varargout{:}] = prdataset(varargin{:});
|
---|
19 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.