Square wave generation using ceil and round operator

Square wave plotting in MATLAB(using ceil and round operator):

We are going to plot square wave using ceil and round function in MATLAB.
First , you should understand , what is difference between Ceil and Round operator.

For that , check the given video below:

Now to plot , the square wave :

1)First define the range of of t 
2)Now check the below concept .

3)For code , check the video below:

No comments