Buongiorno! I'm getting troubles while using "eig" function, and I can't fix it. I do have a matrix containing 4 spectra sampled at 65 wavelengths (let's call it Y), so Y has 4 rows and 65 columns; I must compute the eigenvectors of the product Y'*Y (so of a 65x65 elements matrix). I type: [v,l]=eig(Y'*Y). I'd expect to get a 65x65 matrix (l) of eigenvalues, and a 4x65 eigenvector (v). But, unexpectedly, I get two 65x65 matrices! Why this?? (My version of Matlab is R2012b)

回答 (1 件)

Torsten
Torsten 2015 年 2 月 9 日

0 投票

From the documentation:
[V,D] = eig(___) returns two optional outputs for any of the previous input syntaxes. D is a diagonal matrix containing the eigenvalues. V is a matrix whose columns are the corresponding right eigenvectors.
Best wishes
Torsten.

カテゴリ

ヘルプ センター および File Exchange で Linear Algebra についてさらに検索

タグ

質問済み:

2015 年 2 月 9 日

回答済み:

2015 年 2 月 9 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by