Code for solving 2 b) in MATLAB
1 view (last 30 days)
Show older comments
Accepted Answer
KALYAN ACHARJYA
on 13 Sep 2019
Edited: KALYAN ACHARJYA
on 13 Sep 2019
2 Comments
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')
More Answers (0)
See Also
Categories
Find more on Calculus in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!