LeadLag:

Path: Common/Control

% Create a lead or lag.
   
   Create a lead or lag with the appropriate phase characteristics
   in the form  

              tau1 s + 1
   K(s) = Kdc ----------
              tau2 s + 1

   Given the desired maximum phase magnitude (±90°) and frequency

--------------------------------------------------------------------------
   Form:
   [a, b, c, d] = LeadLag( wmax, phasemax, Kdc, tSamp, sType )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   wmax                  Frequency for max (rad/sec)
   phasemax              Max phase angle (deg)
   Kdc                   DC gain (db)
   tSamp                 Sampling period
   sType                 State equation type ('Delta' or 'Z')

   -------
   Outputs
   -------
   a                     Plant matrix
   b                     Input matrix
   c                     Measurement matrix
   d                     Feedthrough matrix

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

Children:

Common: CommonData/SwooshWatermark
Common: Control/C2DZOH
Common: Control/C2DelZOH
Common: Control/FResp
Common: Control/GND
Common: Control/GSS
Common: Control/ND2SS
Common: Control/S2Damp
Common: Control/SS2ND
Common: Control/SizeABCD
Common: Control/TrnsZero
Common: Control/WPZ
Common: Control/WReson
Common: Control/ZFresp
Common: General/CellToMat
Common: General/MatToCell
Common: General/Watermark
Common: Graphics/LogLimit
Common: Graphics/NewFig
Common: Graphics/Plot2D
Common: Graphics/PltStyle
Common: Graphics/TextS
Math: Linear/ColCompR
Math: Linear/DelLZ
Math: Linear/IsZero
Math: Linear/RowCompU

Back to the Common Module page