plot repeated rect function

Dear all,
How can I plot the rectangular function like the image?
y = 2
Thank you so much for your help

 Accepted Answer

Star Strider
Star Strider on 28 Feb 2022
The pulsetran function is one option.
Another is the stairs function.
There are other possibilities as well.
.

More Answers (0)

Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!