How can I get more Fourier coefficients than the cfit tool?

1 vue (au cours des 30 derniers jours)
Ed Frost
Ed Frost le 15 Août 2019
Modifié(e) : Ed Frost le 15 Août 2019
Hi, I'm new to the community, any help would be greatly appreciated!
I'm working on a project which calculates the Supersonic wave drag of an aircraft from its cross-sectional area distribution. I have discrete data for cross-sectional areas at different points along the aircrafts length. This line gets differentiated, and the fourier coefficients of the first derivative are used to calculate the drag force.
The problem is the curve fitting tool only allows up to 8 fourier coefficients, which gives a poor fit (see below)
As a result, the overly smooth line is leading to an underestimation of the drag force.
Is there a way to get more fourier coefficients for discrete data please? I've seen the fourier_coeff function, but this requires an expression for the function of line which I do not have given that it is discrete data. It also can't compute from a cfit object.
Thanks in advance for any help.
Ed

Réponses (0)

Catégories

En savoir plus sur Fit Postprocessing dans Help Center et File Exchange

Produits


Version

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by