PerUnitNormalization:

--------------------------------------------------------------------------
   Per unit normalization.

   Type PerUnitNormalization for a demo.

--------------------------------------------------------------------------
   Form:
   [pu, d] = PerUnitNormalization( p, vL, nPh, nPP, f, type, value )
   d       = PerUnitNormalization( p, vL, nPh, nPP, f )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   p          (1,1)  Power
   vL         (1,1)  Line-to-line voltage
   nPh        (1,1)  Number of phases
   nPP        (1,1)  Number of pole pairs
   f          (1,1)  Frequency (Hz)
   type       (1,:)  Type of quantity
   value      (1,:)  Value of type

   -------
   Outputs
   -------
   pu         (1,1)  Per unit quantity
   d          (1,1)  Base data structure
                     d.pB      (1,1) Base power
                     d.vB      (1,1) Base voltage
                     d.iB      (1,1) Base current
                     d.rB      (1,1) Base resistance
                     d.lB      (1,1) Base inductance
                     d.cB      (1,1) Base capacitance
                     d.omegaB  (1,1) Base frequency
                     d.tB      (1,1) Base torque
                     d.lambdaB (1,1) Base flux
                     d.pNom    (1,1) Nominal power
 

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