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 CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by