DragPolarFromData:

Path: ACPro/ACProAerodynamics

% Compute the drag polar from data lift and drag coefficient data.

   The drag polar is cD = cD0 + k*cL^2

   Does a least squares curve fit.

   Type DragPolarFromData for a demo.

--------------------------------------------------------------------------
   Form:
   [cD0, k] = DragPolarFromData( cD, cL )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   cD      (1,:)   Drag coefficients
   cL      (1,:)   Lift coefficients

   -------
   Outputs
   -------
   cD0     (1,1)   Drag at zero lift
   k       (1,1)   Induced drag coefficient
  
--------------------------------------------------------------------------

Children:

Common: CommonData/SwooshWatermark
Common: General/CellToMat
Common: General/MatToCell
Common: General/Watermark
Common: Graphics/NewFig
Common: Graphics/Plot2D
Common: Graphics/PltStyle
Math: Linear/LeastSq

Back to the ACPro Module page