How do I plot fourier transform signals in Matlab

3 ビュー (過去 30 日間)
Lucy  Mokaya
Lucy Mokaya 2021 年 4 月 15 日
コメント済み: Lucy Mokaya 2021 年 4 月 16 日
To find Fourier transform (spectrum) of the following signals using MATLAB command “fourier”. To make a plot of signal and spectrum (modulus)
f(t)=e^(-|t| )*cos⁡(20t)
  2 件のコメント
Star Strider
Star Strider 2021 年 4 月 15 日
Replace:
e^(-|t| )
with:
exp(-|t| )
then put a multiplication operator vetween 20 and ‘t’:
cos(20*t)
and go from there.
Lucy  Mokaya
Lucy Mokaya 2021 年 4 月 15 日
that is the signal that I need to plot

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

採用された回答

Star Strider
Star Strider 2021 年 4 月 15 日
f = @ (t) exp(-abs(t)).*cos(20*t);
figure
fplot(f)
for the Symbolic Math Toolbox, this becomes:
syms t
f(t) = exp(-abs(t))*cos(20*t);
I leave the rest to you.
  3 件のコメント
Star Strider
Star Strider 2021 年 4 月 16 日
My pleasure!
If my Answer helped you solve your problem, please Accept it!
.
Lucy  Mokaya
Lucy Mokaya 2021 年 4 月 16 日
yes, it did help with the plotting the signal, still figuring out to plot the spectrum

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by