How to form this diagonal matrix?
    8 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
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
Respuesta aceptada
  Jarrod Rivituso
    
 el 23 de Mzo. de 2012
        m = 4;
M = 1:m;
diagVals = exp(j*2*pi*(M-1./M))
E = diag(diagVals)
Is that right?
3 comentarios
  Jarrod Rivituso
    
 el 23 de Mzo. de 2012
				just because i didn't want a lot of output on my command window. you can easily change it to 1024 :)
Más respuestas (0)
Ver también
Categorías
				Más información sobre Operating on Diagonal Matrices en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

