Fitting Functions
조회 수: 4 (최근 30일)
이전 댓글 표시
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?
댓글 수: 0
채택된 답변
the cyclist
2012년 1월 23일
If you have the Statistics Toolbox, you can use the function nlinfit() to do that.
댓글 수: 0
추가 답변 (2개)
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.
Second solution: install the Ezyfit toolbox, http://www.mathworks.com/matlabcentral/fileexchange/10176-ezyfit-2-40
and type
showfit ('A/x+B/x^2+C/x^3')
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Curve Fitting Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!