Code for solving 2 b) in MATLAB

1 view (last 30 days)
2019-09-13 (2).png

Accepted Answer

KALYAN ACHARJYA
KALYAN ACHARJYA on 13 Sep 2019
Edited: KALYAN ACHARJYA on 13 Sep 2019
ifourier Have you looked here ?
  2 Comments
Somdyuti Das Adhikary
Somdyuti Das Adhikary on 13 Sep 2019
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
Walter Roberson
Walter Roberson on 13 Sep 2019
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!