ifft plot time domain

20 ビュー (過去 30 日間)
Blanca Castells
Blanca Castells 2017 年 4 月 5 日
コメント済み: roni cohen 2020 年 11 月 30 日
Hello!
I'mt trying to plot an Inverse Fast Fourier Transform. In my case, I have a function handle F(w) where w(omega) is the frequency. If I, for example, give values to omega like w=0:0.01:100, I can get values of F(w), and I have to apply the ifft command to those values:
F=@(w) ... ; %Function handle
w=0:0.01:100;
f=F(w); %Now that's a vector
x=ifft(f); %it returns a vector too
So, if I wanna plot F(w) I use plot(w,f); but if I wanna plot x(t) I only have the vector 'x' but not the time domain to have the x-axis. It's like I have the values of the x(t) function, but I don't know the points they correspond to.
I'd appreciate any help, Thanks! :)

採用された回答

Jayaram Theegala
Jayaram Theegala 2017 年 4 月 7 日
The time points matter only if you are thinking of a signal in continuous domain. The "ifft" function gives you discrete values and you can plot them as shown below:
plot(1:length(x), x);
However, if you want to convert your discrete signal to continuous domain, you should know the sampling frequency used to create the initial discrete signal. I hope this helps!
  1 件のコメント
roni cohen
roni cohen 2020 年 11 月 30 日
how can use fs to convert to continuos domain?

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDiscrete Fourier and Cosine Transforms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by