square - Square wave

Syntax

x=square(t)
x=square(t,duty)

x = square(t) generates a square wave with period 2π for the elements of time vector t. square(t) issimilar to sin(t), but creates a square wave with peaks of ±1 instead of a sinewave.


누가 니맘대로 sin 쓰랬냐 병신아