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

st: RE: Append matrixes


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Append matrixes
Date   Tue, 23 Aug 2005 12:42:25 +0100

You need to use a loop, say -foreach- or -forval-. 

forval i = 1/1200 { 
	mat B = nullmat(B) \ b`i' 
}

Nick 
n.j.cox@durham.ac.uk 

Jorge Tuesta
 
> I have many matrixes 1x2 (1200 matrixes), but i would like 
> only one matrix 
> (600x2)
> In the manual indicates that  " \ " mean join row (append 
> matrixes). That 
> is:  matrix C=A \ B,
> but i have 1200 matrixes!!!!(b1, b2....b1200). How I append 
> this matrixes?


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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