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