Fitting a function to data

Hello all,
I got the following function:
function y=decay(t,C1,C2,n,t1,t2)
y=C1+(C2-C1)*exp(-n*(t-t1));
itu=find(t<t1 | t>t2);
y(itu)=NaN;
I want to fit this curve on data that I obtained using matlab. However I don't succeed in using the optimization toolbox. Furthermore I don't think it is possible to use the curve fitting toolbox for this. Can anyone help me with this issue?
Kind regards, Rob

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Interpolation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by