How to form this diagonal matrix?

1 回表示 (過去 30 日間)
Janet
Janet 2012 年 3 月 23 日
E= diag [ 1 e^j*((2*pi)/M)........e^j*((2*pi)/M)*M-1 ]
where M=1024 and E= M x M diagonal matrix
  1 件のコメント
Janet
Janet 2012 年 3 月 23 日
pls share ur ideas

サインインしてコメントする。

採用された回答

Jarrod Rivituso
Jarrod Rivituso 2012 年 3 月 23 日
m = 4;
M = 1:m;
diagVals = exp(j*2*pi*(M-1./M))
E = diag(diagVals)
Is that right?
  3 件のコメント
Jarrod Rivituso
Jarrod Rivituso 2012 年 3 月 23 日
just because i didn't want a lot of output on my command window. you can easily change it to 1024 :)
Janet
Janet 2012 年 3 月 24 日
thank u :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeOperating on Diagonal Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by