Thread Subject: IFFT of symmetric vector: must I input the redundant coefficients?

Subject: IFFT of symmetric vector: must I input the redundant coefficients?

From: Knut

Date: 11 Sep, 2011 19:37:08

Message: 1 of 3

I want to do the IFFT of a conjugate symmetric vector. Is it possible to do the IFFT of the first (non-redundant) coefficients, using the "half-complex" functions mentioned in the FFTW docs?

Subject: IFFT of symmetric vector: must I input the redundant coefficients?

From: Wayne King

Date: 11 Sep, 2011 22:09:14

Message: 2 of 3

"Knut" wrote in message <j4j2l3$1kf$1@newscl01ah.mathworks.com>...
> I want to do the IFFT of a conjugate symmetric vector. Is it possible to do the IFFT of the first (non-redundant) coefficients, using the "half-complex" functions mentioned in the FFTW docs?

Hi Knut, Yes, you can just use the 'symmetric' option in ifft.

x = 1:8;
xdft = fft(x);
ifft([xdft(1:5) zeros(1,3)],'symmetric')
ifft(xdft)

Wayne

Subject: IFFT of symmetric vector: must I input the redundant coefficients?

From: Knut

Date: 12 Sep, 2011 07:50:29

Message: 3 of 3

"Wayne King" wrote in message <j4jbi9$fi$1@newscl01ah.mathworks.com>...
> Hi Knut, Yes, you can just use the 'symmetric' option in ifft.
>
> x = 1:8;
> xdft = fft(x);
> ifft([xdft(1:5) zeros(1,3)],'symmetric')
> ifft(xdft)
>
> Wayne
Thank you, I just learned this myself :-)

But it still seems like a waste of bandwidth to have to copy a vector into something ~twice it size filled with zeros, just to have the underlying FFTW library ignore the latter half (assuming that MATLAB utilize the half-complex interface under the hood)?

-k

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
fftw ifft symme... Knut 11 Sep, 2011 15:39:09
rssFeed for this Thread

Contact us at files@mathworks.com