[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: analogues of macros in Mata?

From   "Stas Kolenikov" <>
Subject   st: analogues of macros in Mata?
Date   Wed, 17 Sep 2008 09:21:47 -0500

Suppose I form say a filename using some string operations, something like

myfilename = prefix + "-" + suffix

and then want to save something along the lines of

mata matsave {myfilename} Matrix1 Matrix2 Matrix3

Is there any way to have Mata go into the contents of myfilename
object there, rather than create the file "myfilename.mmat" in the
current directory? Or may be explicit version

mata matsave prefix+"-"+suffix Matrix1 Matrix2 Matrix3

Stas Kolenikov, also found at
Small print: I use this email account for mailing lists only.
*   For searches and help try:

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