Fitting Functions

1 回表示 (過去 30 日間)
Naty S
Naty S 2012 年 1 月 23 日
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?

採用された回答

the cyclist
the cyclist 2012 年 1 月 23 日
If you have the Statistics Toolbox, you can use the function nlinfit() to do that.

その他の回答 (2 件)

Naty S
Naty S 2012 年 1 月 27 日
Thanks

Frederic Moisy
Frederic Moisy 2012 年 1 月 30 日
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')

カテゴリ

Help Center および File ExchangeGet Started with Curve Fitting Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by