Fitting Functions

1 visualizzazione (ultimi 30 giorni)
Naty S
Naty S il 23 Gen 2012
I have a Vector of Data. and i want to do a fitting to the Vector. but I want the fit to be in the shape of:
A/x+B/x^2+C/x^3...
is there any Known function I am missing?or do i need to write my own code. if so anyone is familiar with a good way to do that?

Risposta accettata

the cyclist
the cyclist il 23 Gen 2012
If you have the Statistics Toolbox, you can use the function nlinfit() to do that.

Più risposte (2)

Naty S
Naty S il 27 Gen 2012
Thanks

Frederic Moisy
Frederic Moisy il 30 Gen 2012
Hi,
First solution: replace x by y=1/x, then use polyfit to fit your data with respect to y.
and type
showfit ('A/x+B/x^2+C/x^3')

Categorie

Scopri di più su Get Started with Curve Fitting Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by