How to include a fixed point in exponential fit?

1 visualización (últimos 30 días)
Akshayaa Pandiyan
Akshayaa Pandiyan el 13 de Mzo. de 2019
Comentada: Akshayaa Pandiyan el 15 de Mzo. de 2019
I am trying to fit my data with fit(x,y, 'exp1') function to get the attenuation of the signal. The first point of my data is crucial and should always be included in the fit. Is there a solution to define this point to be always included during the fit?

Respuesta aceptada

Jeff Miller
Jeff Miller el 13 de Mzo. de 2019
You can approximate this by using the 'weights' input parameter to fit. Give the first point much higher weight than any of the others, and that point should be fit almost exactly.

Más respuestas (0)

Categorías

Más información sobre Interpolation en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by