MATLAB: How to take a periodic function f(t) from the user

evenmirroroddperiodicreflectionuser input

How to take a periodic function f(t) from the user with 2 rules (each rule has its own time period) and plot it alongside its reflection and get the even and the odd parts of it and draw f(at+b) where a and b are user-defined constants ?
thanks in advance.

Best Answer

For these kind of situation, you may use piecewise.