CompE:

Path: Common/Control

% Create a SISO compensator using a variety of compensator elements.
   Each
   element of d is a data structure which contains the parameters of the
   particular compensator.

        Element Type                Underlying Function
        --------------------        -------------------
        'butterworth filter'        CButter
        'delay'                     Delay
        'general second order'      Gen2nd
        'integral'                  Integral
        'lead-lag'                  LeadLag
        'notch'                     Notch
        'pilot'                     Pilot
        'pulsewidth modulator'      PWM
        'shaping filter'            ShapeFlt
        'washout'                   ND2SS( [1 0], [1 w] );
        'zero order hold'           ZOH

--------------------------------------------------------------------------
   Form:
   g = CompE( x, sType, dT )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   x           (n)   Compensator element data structure
                     .type
                     .name
                     .... (different for each element type)
   sType       (1,:) State space type, 'delta', 'bilinear', 'zoh', 'forward', 'backward'
   dT          (1,1) Time step

   -------
   Outputs
   -------
   g           (:)   Compensator

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