9948
|
1 % XPTOPEN read of several file formats and writing of the SAS Transport Format (*.xpt) |
|
2 % |
12701
|
3 % X = xptopen(filename) |
|
4 % X = xptopen(filename,'r') |
|
5 % read filename and return variables in struct X |
|
6 % Supported are ARFF, SAS-XPT and STATA files. |
9948
|
7 % |
12701
|
8 % X = xptopen(filename,'w',X) |
|
9 % save fields of struct X in filename. |
|
10 % |
|
11 % The fields of X must be column vectors of equal length. |
|
12 % Each vector is either a numeric vector or a cell array of strings. |
12309
|
13 % |
12701
|
14 % The SAS-XPT format stores Date/Time as numeric value counting the number of days since 1960-01-01. |
12309
|
15 |
12701
|
16 % Copyright (C) 2015 by Alois Schloegl <alois.schloegl@gmail.com> |
|
17 % This is part of the NaN-toolbox. For more details see |
|
18 % https://pub.ist.ac.at/~schloegl/matlab/NaN/ |
9948
|
19 % |
12701
|
20 % This program is free software; you can redistribute it and/or modify |
|
21 % it under the terms of the GNU General Public License as published by |
|
22 % the Free Software Foundation; either version 3 of the License, or |
|
23 % (at your option) any later version. |
9948
|
24 % |
12701
|
25 % This program is distributed in the hope that it will be useful, |
|
26 % but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
27 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
28 % GNU General Public License for more details. |
|
29 % |
|
30 % You should have received a copy of the GNU General Public License |
|
31 % along with this program; If not, see <http://www.gnu.org/licenses/>. |