How to form this diagonal matrix?

2 views (last 30 days)
Janet on 23 Mar 2012
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 Comment
Janet on 23 Mar 2012
pls share ur ideas

Sign in to comment.

Accepted Answer

Jarrod Rivituso
Jarrod Rivituso on 23 Mar 2012
m = 4;
M = 1:m;
diagVals = exp(j*2*pi*(M-1./M))
E = diag(diagVals)
Is that right?

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by