Adam Adams
Adam Adams

Reputation: 57

Translate Matlab eig to R eigen

How to translate this MATLAB code

[W LA] = eig(Matrix) 

in to R code, I have this

w= eigen(Matrix)$vectors

But how to obtain the ‘LA’ matrix

Upvotes: 1

Views: 545

Answers (1)

大竹雄河
大竹雄河

Reputation: 11

LA= eigen(Matrix)$values %*% diag(length(Matrix))

Upvotes: 1

Related Questions