MATLAB: Exponential fit by customised equation

customised equationexponential equationgoodness of fitmatalb 2018b

When I am fiiting my experimental data clicking exponetial fit, then it fits well. But when I am writing the same equation in customised form its not fitting.

Best Answer

Hi, Sushreesmita Mishra, the problem you met is normal. When chose build-in function for data fitting, since "build-in", so Matlab itself know which function user selected, then it can chose proper initial start-value acording to the type of function and the data, in the otherhand, for fitting function customised, Matlab doesn't know the type of the function, thus the initial start-values can not be given properly, it lead to the poor fit as your meeting. Same situation in other packages like OriginPro.