Help recreating square wave from equation
Show older comments
Hello,
I need help recreating a square wave from the following equation:

Thanks!
Accepted Answer
More Answers (1)
Sulaymon Eshkabilov
on 24 May 2021
0 votes
Hi,
It is a quite straightforward exercise. You can create this signal using a colon operator (:), or [for .. end] or [while .. end] loop. Colon operator is the most efficient one.
Good luck.
1 Comment
Mackenzie Weeks
on 24 May 2021
Edited: Mackenzie Weeks
on 24 May 2021
Categories
Find more on Mathematics 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!

