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.
Eigen Values
Re: Eigen Values
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)
compute a=%xcol(y,1)
compute b=%xcol(y,2)
compute c=%xcol(y,3)