Code for solving 2 b) in MATLAB

 Accepted Answer

KALYAN ACHARJYA
KALYAN ACHARJYA on 13 Sep 2019
Edited: KALYAN ACHARJYA on 13 Sep 2019
ifourier Have you looked here ?

2 Comments

I tried using piecewise to define the function. But then, I am not able to use either ifourier or ifft to find the inverse Fourier Transform
piecewise() is part of the Symbolic Toolbox, which uses fourier() and ifourier()
However, ifourier() is unable to handle this particular case if you write it in piecewise(). It can, however, handle if if you write the expression in terms of heaviside() -- but you do have to be careful about the boundary conditions: check out sympref('heavisideatorigin')

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!