This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Rectangular pulse function

MuPAD® notebooks are not recommended. Use MATLAB® live scripts instead.

MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.


rectpulse(a, b, x)


rectpulse(a, b, x) represents the rectangular pulse function.

rectpulse(x) is a shortcut for rectpulse(-1/2, 1/2, x).

rectpulse and rectangularPulse are equivalent. These functions represent the rectangular pulse function. For details and examples, see rectangularPulse.


a, b, x

Arithmetical expressions.

Return Values

Arithmetical expression.

Overloaded By


Was this topic helpful?