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

Re: st: Append matrixes


From   Chris Kopp <[email protected]>
To   [email protected]
Subject   Re: st: Append matrixes
Date   Tue, 23 Aug 2005 11:38:55 +0200

Hi Jorge,

I have a somewhat clumsy solution, and i tried it out for only 3 matrices. So its not only ugly, but there may be matters of speed. I tried
mat C = (0,0)
forv i=1/3 { /* in your case, i=1/1200*/
mat C = C\b`i'
}
mat B = C[2...,1...]

Hope this helps.

Chris

At 07:07 23.08.2005, you wrote:

Dear Stata listers

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?

Thanks in advandce

Jorge



*
* 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/
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index