Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: st: Problem Using Matwrite, "unrecognized command" error

From   Christopher Baum <>
To   "" <>
Subject   Re: Re: st: Problem Using Matwrite, "unrecognized command" error
Date   Mon, 18 Apr 2011 08:54:12 -0400

On Apr 18, 2011, at 2:33 AM, JT wrote:

> Is matwrite.win32 the plugin (following Nick's email, I was thinking
> that the plug-in should end in .plugin)?  I copied matwrite.win32
> along with the other .ado and .hlp files into C:\ado\plus\m and
> C:\Program Files (x86)\ado\updates\m, and am still experiencing the
> error
> . matwrite x y using c:\matlabfile, replace
> unrecognized command
> My Windows 7 is 64 bit.  However, I was under the impression that this
> was fully compatible with Stata.  The main Stata ado files are
> installed in C:\Program Files (x86), where Program Files (x86) is the
> place where one is supposed to store 32 programs.

No. This illustrates one of the real disadvantages of Stata plugins. if you

ssc type matwrite.pkg

you will see that the only version of Windows supported by this package is 32-bit Windows. If there was
a 64-bit Windows version (or Mac OS X version, or Linux version) available, there would be additional compiled plugins listed on separate lines.
The ssc command will download the one appropriate to your machine. In this case the WIN should probably be WIN32 and the package description should reference 32-bit Windows.

Thankfully not very many user-programmers have resorted to plugins. They are a tremendous pain to maintain, and as you can see here, just because there is a "Windows version" doesn't mean it will run on all Windows systems. Mata code will be almost as fast (if written well) and platform-independent.


Kit Baum   |   Boston College Economics & DIW Berlin   |
                              An Introduction to Stata Programming  |
   An Introduction to Modern Econometrics Using Stata  |

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index