Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: MATLAB export plugin for Stata 8

From   Andrew Shephard <[email protected]>
To   [email protected]
Subject   st: MATLAB export plugin for Stata 8
Date   Tue, 30 Nov 2004 15:23:15 +0000

Dear All,

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

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.

Many thanks,

Andrew Shephard

[email protected]
* For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index