MATLAB: How can plot square wave oscillator

plot square wave

I have a signal that need to plot where ‘3’, ‘2’, and ‘1’ indicates the degree of level.

Best Answer

Hello,
Try the function stairs()
Related Question