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: Loops in Mata
From
gsborker <[email protected]>
To
[email protected]
Subject
st: Loops in Mata
Date
Wed, 26 Jan 2011 02:08:54 -0800 (PST)
Hi
I am trying to do the following in mata
mata
for (i=1; i<=379; i++) {
xi = st_data(.,"Pi") ;
yi = (xi)' ;
polyroots(yi) ;
}
end
where P* are (674x1) column vectors. I am trying to run the "polyroots"
command 379 times on (1x674) row vectors. This is not working and I'm
getting recurrent errors.
Thanks for your help in advance.
G.
--
View this message in context: http://statalist.1588530.n2.nabble.com/Loops-in-Mata-tp5962185p5962185.html
Sent from the Statalist mailing list archive at Nabble.com.
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/