Automatic Complex Conjugate in ftt

3 visualizaciones (últimos 30 días)
Ha Oe
Ha Oe el 26 de Nov. de 2019
Comentada: Ha Oe el 26 de Nov. de 2019
So I am computing the fft of an array containing vectors. The documentation says that the fft treats each collumn as a vector and computes the fft of each collumn. This means that the following should be the same:
% F1 and F2 should be equal
data = rand(4,100)
F1 = fft(data')' ; % F1
F2 = zeros(size(data)) ;
for n = 1:4
F2(n,:) = fft(data(n,:)) ; % F2
end
But they are not equal. In fact, F2 is the complex conjugate of F1. Does anyone know why this is this happening?

Respuesta aceptada

David Goodmanson
David Goodmanson el 26 de Nov. de 2019
Hello Ha Oe
the quote command is not just the transpose, it's the complex conjugate transpose (Hermetian conjugate). For the straight transpose, use .' (dot quote).
  1 comentario
Ha Oe
Ha Oe el 26 de Nov. de 2019
Thank you. That now all makes sense.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Productos


Versión

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by