Ramp:

Path: Math/MathUtils

% Generate a ramp signal at t0 from value v0 to vF in time interval t
--------------------------------------------------------------------------
   Form:
   v = Ramp( t, t0, v0, vF, vDotMax )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   t           (1,:)  Time vector
   t0           (1)   Time at which to begin ramp
   v0           (1)   Initial value
   vF           (1)   Final value
   vDotMax      (1)   slope of ramp

   -------
   Outputs
   -------
   v           (1,:)  Ramp signal

--------------------------------------------------------------------------

Back to the Math Module page