MATLAB Answers

How do I plot fourier transform signals in Matlab

40 views (last 30 days)
Lucy  Mokaya
Lucy Mokaya on 15 Apr 2021 at 19:22
Commented: Lucy Mokaya on 16 Apr 2021 at 11:45
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 Comments
Lucy  Mokaya
Lucy Mokaya on 15 Apr 2021 at 19:44
that is the signal that I need to plot

Sign in to comment.

Accepted Answer

Star Strider
Star Strider on 15 Apr 2021 at 21:11
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 Comments
Lucy  Mokaya
Lucy Mokaya on 16 Apr 2021 at 11:45
yes, it did help with the plotting the signal, still figuring out to plot the spectrum

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!