Page 1 of 1

Eigen Values

Posted: Tue Oct 06, 2015 9:54 pm
by rizu81
Hello Moderator,

I am new to RATS. and I am struggling with one very basic thing. I could get and see the Eigen values of a matrix (say, x) by writing the following code
eigen x y
dis y
where y is a matrix of (350*3) dimension.
But i don't know how to store this element of y. for example: i want to store the first column of y as A, second column as B, and third column as C. Each of them will be (350*1) in dimension.

Thanks in advance.

Re: Eigen Values

Posted: Wed Oct 07, 2015 8:11 am
by TomDoan
The eigen vectors are the third parameter, not the second. (eigenvalues are the second). Use %XCOL.

compute a=%xcol(y,1)
compute b=%xcol(y,2)
compute c=%xcol(y,3)