Set up a function corresponding to this graph
Show older comments
hi, the following sketch was given to me and i need to set up a corresponding function. One problem, i have absolutely no clue, can somebody help me?

Accepted Answer
More Answers (1)
Mark Sherstan
on 10 Feb 2019
t = linspace(0,3*pi)';
x = square(t);
plot(t,x)
ylim([-2,2])
1 Comment
Danny Helwegen
on 11 Feb 2019
Categories
Find more on Networks 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!