Previous Up Next

21.1.1  Boxcar function

The boxcar command creates a function which has the value 1 in a given interval, and otherwise 0.

Examples

boxcar(1,2,x)
     
θ⎛
⎝
x−1⎞
⎠
−θ⎛
⎝
x−2⎞
⎠
          
boxcar(1,2,3/2)
     
1           
boxcar(1,2,0)
     
0           

Previous Up Next