Clear Filters
Clear Filters

plot repeated rect function

6 views (last 30 days)
Tu Nguyen
Tu Nguyen on 28 Feb 2022
Answered: Star Strider on 28 Feb 2022
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

Find more on Line Plots 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!