フィルターのクリア

Frequency spectrum

3 ビュー (過去 30 日間)
osman yurdakul
osman yurdakul 2011 年 6 月 26 日
how can i something by fft like in this image?
please help me
  1 件のコメント
Rick Rosson
Rick Rosson 2011 年 6 月 27 日
What have you tried so far?

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

回答 (1 件)

Rick Rosson
Rick Rosson 2011 年 6 月 27 日
The best way to start is to specify a value for T, which represents half of the period of the square wave message signal m(t). Then, you will want to specify an appropriate value for the sampling rate Fs, which needs to be large enough to represent several of the harmonics of the square wave in the frequency domain. In other words, choose Fs so that it is quite a bit larger then 1/T, the fundamental frequency.
Once you have defined T and Fs, you will need to define the square wave message signal m(t) in the time domain. There are several ways to accomplish this task in MATLAB. After you have defined t and m, you can use the fft and fftshift functions to compute the discrete Fourier transform of m, which will give you an estimate of the discrete Fourier series. Then you can plot it in the frequency domain using the plot function.
HTH.
Rick

カテゴリ

Help Center および File ExchangeSpectral Measurements についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by