The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Reconstructing a signal from phase and magnitude of its fft
Replies: 1   Last Post: Apr 10, 2007 10:58 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Gehan Mustafa Kamel

Posts: 13
Registered: 8/2/06
Reconstructing a signal from phase and magnitude of its fft
Posted: Apr 10, 2007 8:09 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


Hello all,

I asked someone how can i reconstruct a signal from the magnitude and
the phase of its fft. He gave me the following to do so:
>> magnSub1=abs(fft(sub1));
>> phaseSub1=angle(fft(sub1));
>> sub1_L=magnSub1.*exp(i*phaseSub1);
>> sub1_L=ifft(sub1_L);
>> q=(abs(sub1_L).*cos(angle(sub1_L)));

When i do this and listen to the reconstructed signal, it sounds
exactly like the original, however the values of the recontructed
signal's vector are very differrent from the values of the original
signal's vector.

How can i reconstruct the signal exactly with its exact values?

Thanks a lot

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.