How do you make a rectangular pulse in Matlab?
rectangularPulse( a , b , x ) returns the Rectangular Pulse Function. rectangularPulse( x ) is a shortcut for rectangularPulse(-1/2,1/2,x) .
How do you create a pulse signal in Matlab?
y = pulstran( t , d , func ) generates a pulse train based on samples of a continuous function, func . y = pulstran( t , d , func , fs ) uses a sample rate of fs . y = pulstran( t , d , p ) generates a pulse train that is the sum of multiple delayed interpolations of the prototype pulse in vector p .