ifft

10 ビュー (過去 30 日間)
i Venky
i Venky 2011 年 10 月 13 日
編集済み: Mayank Lakhani 2015 年 7 月 8 日
I want to distort the phase of the frequency spectrum of a signal and not the magnitude. After that I want to find out the ifft considering both magnitude and the new phase. Usually I consider the function as a whole (complex function x) and find ifft(x). But I don't know how to find ifft of mag(x) and a*phase(x) (where 'a' is any constant).How would I do that?

採用された回答

Honglei Chen
Honglei Chen 2011 年 10 月 13 日
Let's assume that the signal is x. So what you could do is
Xf = fft(x);
Xf_mag = abs(Xf);
Xf_phase = angle(Xf);
% do whatever you need to the phase and save to Xf_phase_new
Xf_new = Xf_mag.*exp(1i*Xf_phase_new);
x_new = ifft(Xf_new);
HTH
  3 件のコメント
David Young
David Young 2011 年 10 月 13 日
Thanks, my comment deleted as now irrelevant.
i Venky
i Venky 2011 年 10 月 14 日
Didn't even realize this. Thanks man.

サインインしてコメントする。

その他の回答 (1 件)

Mayank Lakhani
Mayank Lakhani 2015 年 7 月 8 日
編集済み: Mayank Lakhani 2015 年 7 月 8 日
Hi all, I want to have amplitude and phase reconstruction of the signal. My signal is having 40KHz bandwidth and starting frequency is 70Khz to 110 KHz. Suppose my signal is X.
nfft = length(x);
res = fft(y_filt,nfft)/ nfft; % normalizing the fft
f = fs/2*linspace(0,1,nfft/2+1); % choosing correct frequency
res = res(1:nfft/2+1); % amplitude of fft
res2 = fft(res);
now i want to plot frequncy versus amplitude and frequency versus phase. figure, plot(f,abs(res2) where the amplitude shoud be lying from the 70KHz to 110 Khz and same in the Figure(f,angle(res2), the phase shoud be spreaded over 70kHz to 110Khz. So how to chose the correct frequency axes.

カテゴリ

Help Center および File ExchangeMultirate Signal Processing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by