The first test release of matwrite, a Stata plugin which allows you to
export the current Stata dataset into the MATLAB MAT-file format is
available to download at http://www.ifs.org.uk/matwrite.zip
Matwrite allows you to export all (or selected) variables as column
vectors, and all (or selected) matrices as matrices. Matwrite offers you
the quickest and easiest way to transfer data from Stata to Matlab. In
its most simple form, the Stata command:
matwrite using c:\mymatfile, replace
will save all variables and matrices to the MAT-file, "mymatfile.mat".
The help file documents more detailed syntax.
I would be very grateful if those of you who transfer data from MATLAB
to Stata, would try and use this plugin, and give me any suggestions for
improvements, or indeed, notify me of any bugs.
To install matwrite, simply extract the contents of the zip file to your
personal ado directory. Please note however, that matwrite will
currently only work on Windows systems. Also note that because I have
written my own class for writing MAT-file's, you will not need MATLAB
installed on your computer to use this plugin.