Question

me) = est ult-2) (Please do fourier transform then plot) and m(t) e 3t uct-2) cos (2ooort)

I would like to have a better understanding of how to do Fourier transformations on Matlab.

If this is possible. Please show me how to:

1. have Matlab FIND the Fourier transformation of the two functions above. They do not have to be in the same program or anything. I just want to understand the syntax and semantics better.

2. THEN plot the Fourier transform that you found
VIA MATLAB.

The main thing that I am trying to do is to be able to check to see if my Fourier transformations solved on paper are correct to make things easier in the future. comments in the code would be greatly appreciated!

Thank you.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

First I am giving you basic example of Fourier Transform

1  

We know that Fourier Transform of dirac(t) =1

Now Using MATLAB

clc
syms t % symbolic t
f = dirac(t);
f_FT = fourier(f) % Symbolic Fourier Transform

Result:

f_FT =
1

1586291309019_image.png

2.

Now Check for Unit Step

\bg_white \fn_jvn \large F\left (u(t) \right )=\frac{-j}{\omega }+\pi *dirac\left ( t \right )

Using MATLAB CODE

clc
syms t % symbolic t
f = heaviside(t); % Heaviside is unit step function
f_FT = fourier(f) % Symbolic Fourier Transform

Result:

f_FT =
pi*dirac(w) - 1i/w

Now coming to given Problems

1.

f= exp(-3*t)*u(t-2)

MATLAB CODE

syms t % symbolic t
f = exp(-3*t)*heaviside(t-2);
f_FT = fourier(f) % Symbolic Fourier Transform

RESULT:

f_FT =
exp(- w*2i - 6)/(3 + w*1i)
>>

1586291706018_image.png

2.

f= exp(-3*t)*u(t-2)*cos(2000*pi*t)

MATLAB CODE

syms t % symbolic t
f = exp(-3*t)*heaviside(t-2)*cos(2000*pi*t);
f_FT = fourier(f) % Symbolic Fourier Transform

RESULT:

>> symbolic_fft
f_FT =
exp(- w*2i - 6)/(2*(w*1i - pi*2000i + 3)) + exp(- w*2i - 6)/(2*(w*1i + pi*2000i + 3))

1586291829491_image.png

If you have any doubt ,please feel free to ask in comment section.

Please Rate my work.

Add a comment
Know the answer?
Add Answer to:
I would like to have a better understanding of how to do Fourier transformations on Matlab....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT