Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Re: export matrix from mata to stata
From
"Joseph Coveney" <[email protected]>
To
<[email protected]>
Subject
st: Re: export matrix from mata to stata
Date
Fri, 5 Apr 2013 12:29:16 +0900
Wu Zhang wrote:
Could you someone help me export matrix from mata to stata? I know the other
way around: st_matrix, but do not know how to export from mata.
--------------------------------------------------------------------------------
It's the same function. Use it as a void function.
Joesph Coveney
. mata:
--------------- mata (type end to exit) ---------------
: A = (0, 0 \ 1, 1)
: st_matrix("StataMatrix", A)
: end
-------------------------------------------------------
. matrix list StataMatrix
StataMatrix[2,2]
c1 c2
r1 0 0
r2 1 1
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/