FFT of a function

7 ビュー (過去 30 日間)
ong
ong 2013 年 4 月 11 日
I would like to do a FFT of x, x=cos(2*pi*f*t)
How can i replace X(W) = FFT(X) --> X(W/a) = ?
Thanks.

回答 (1 件)

themaze
themaze 2013 年 4 月 11 日
Here is a nice way to accomplish that
I am assuming that w = 2*pi*f. Also you need to define your t
Xw = @(w, t) fft(cos(w*t));
to call the function, just use
Xw(w, t) or Xw(W/a, t)
  1 件のコメント
ong
ong 2013 年 4 月 11 日
Hi, thanks for the respond. What does the @ component do?

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

カテゴリ

Help Center および File ExchangeFourier Analysis and Filtering についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by