The boxcar command takes three arguments: real numbers a , b and an identifier or an expression x . It returns u(x−a)−u(x−b) , where u is the Heaviside function. The resulting expression defines a function which is zero everywhere except within the segment [a,b] , where its value is equal to 1.
For example, input :
Output :
Input :
Output :
Input :
Output :