Hello world!
I want to find the fourier transform X(ω) of these continuous signals x(t).
Also I want to find the inverse fourier transform of these signal X(ω).
In addition, for each of the above questions, draw the signals x(t) and the spectrums Χ(ω) respectively.
I run this code for first questions but it doesn't work. Can anyone help me?
t =(-1:0.01:1)';
u == unitstep = t>=0;
x = (t.*exp(-3*t)*sin(8*t))*u;
f = fourier(x);
plot(f)

 채택된 답변

Ameer Hamza
Ameer Hamza 2020년 12월 3일

0 개 추천

fourier() works with symbolic inputs
syms t
x(t) = (t*exp(-3*t)*sin(8*t))*heaviside(t);
fourier(x)

댓글 수: 5

RoBoTBoY
RoBoTBoY 2020년 12월 3일
편집: RoBoTBoY 2020년 12월 3일
And how to plot this fourier transform? in order to plot I will need values for t.
Fourier series itself return complex numbers. You need to plot its magnitude
syms t
x(t) = (t*exp(-3*t)*sin(8*t))*heaviside(t);
f = abs(fourier(x));
fplot(f, [0 10])
In order to find the angle. will i use this?
f = angle(fourier(x));
Ameer Hamza
Ameer Hamza 2020년 12월 3일
Yes. That is correct.
RoBoTBoY
RoBoTBoY 2020년 12월 3일
How to perform the second question with code?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

질문:

2020년 12월 3일

댓글:

2020년 12월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by