Matlab,DSP: How to check if an array has hermitian symmetry

683 Views Asked by At

I have a rather large piece of code at the end of which I need to apply ifft to an array ZF. ZF is the fft of the columns of a matrix Z.

The problem is, the ifft turns out to be a complex double array (which it shouldn't if I did everything correctly) so I need a debugging tool to check at which point of the numerous manipulations I performed on the original DFT I lost the Hermitian Symmetry.

The array is a double 1024x1376

my attempt at this is:

for i=2:N/2
    Herm=ZF(i,:)+ZF(N-i+2,:);
end

N=1024 is the number of rows and if Herm is purely real then I have the Symmetry.

Any thoughts? I'm still on the first month of MATLAB so if I'm way off feel free to tell me.

0

There are 0 best solutions below