MATLAB Answers

0

Code for solving 2 b) in MATLAB

Asked by Somdyuti Das Adhikary on 13 Sep 2019
Latest activity Commented on by Walter Roberson
on 13 Sep 2019
2019-09-13 (2).png

1 Answer

Answer by KALYAN ACHARJYA on 13 Sep 2019
Edited by KALYAN ACHARJYA on 13 Sep 2019
 Accepted Answer

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.