FUNCTION REFERENCE
square
Square wave.
Square wave.
Syntax
square(t)Syntax
square(t, duty)Period is 2*pi. duty is the percent of the period that is +1 (default 50).
Example
square(pi/2) % 1Differences from MATLAB: Real double 2-D arrays only.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.