FXNMTE:

--------------------------------------------------------------------------
   Finds the vectors
   rho   = z - h
   Dihedral angles are replaced by trailing edge angles.
--------------------------------------------------------------------------
   Form:
   [rho, W, JL] = FXNMTE( x )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   x         State vector
   type1     'leading' 'trailing' or 'midscan'
   type2     'leading' 'trailing' or 'midscan'

   -------
   Outputs
   -------
   rho       Residual vector z - h
   W         The measurement weighting vector
   JL        Cost eliminated by eliminating measurements
     
--------------------------------------------------------------------------