필터 지우기
필터 지우기

I have two scripts for fitting a function. The fitting results are the same for both of the scripts, but plotting the fit results is producing different plots.

조회 수: 3 (최근 30일)
I have two attached scripts creatFit.m and expfit_mine. I am fitting same data with same lower and upper bounds with same starting points. The fitresults are giving the same values for parameters, but while I am plotting they are producing different plots. createFit was generated by matlab and I made the expfit_mine.
Regards, Manvendra

채택된 답변

dbmn
dbmn 2016년 9월 14일
change the last line of expfit_mine.m to
plot(xData,yData,'b.',times,fun(fitresult,times),'r-')
and you should be fine

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get 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