我有一组数据点,旨在显示我正在研究的机制的“理想”曲线 .
当我要求Matlab中的曲线拟合工具箱找到一个2项指数时,我得到了一个很好的拟合(R平方:0.9998,调整后的R平方:0.9997) . 但是,当我为此拟合生成代码时,它会更改系数a,b,c和d .
在工具箱中,它显示:
一般模型Exp2:f(x)= a * exp(b * x)c * exp(d * x)
系数(95%置信区间):a = 4.698e 04(-1.477e 13,1.477e 13)
b = 0.4381(-1200,1201)
c = -4.698e 04(-1.477e 13,1.477e 13)
d = 0.4381(-1200,1201)
拟合优度:SSE:0.002979 R-square:0.9998调整后的R平方:0.9997 RMSE:0.006823
曲线拟合工具箱生成的函数:
function [fitresult, gof] = createFit1(bgSt, testSt)
%CREATEFIT1(BGST,TESTST)
% Create a fit.
%
% Data for 'standard mechanism' fit:
% X Input : bgSt
% Y Output: testSt
% Output:
% fitresult : a fit object representing the fit.
% gof : structure with goodness-of fit info.
%
% See also FIT, CFIT, SFIT.
% Auto-generated by MATLAB on 29-Apr-2015 15:54:07
%% Fit: 'standard mechanism'.