[SOLVED] FFT & IFFT with different lengths

Status
Not open for further replies.

emicho

Junior Member level 3
Joined
May 9, 2011
Messages
27
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,422
Signal is a 160 samples
and I am obligated to apply a 512 FFT
is there any way that I could restore my signal
with a 160 IFFT

X=FFT(signal,512)
x=IFFT(X,160)

x == signal !?!?

how can I make this relation possible
any Idea guys?!
please help
 

When you perform FFT of 512 points, the signal must have exactly 512 values, If it has less, it must be zero-padded. Apparently the FFT function you are using does this automatically (Matlab does).
Then, if you perform IFFF of that, you get the data on which FFT was applied (i.e. zero-padded signal), whose 160 first samples are the original signal.
Regards

Z
 
Reactions: emicho

    emicho

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…