I have data I need to fit to an equation, which I can do, but I want the equation to pass through point (0,1).
The equation is an exponential y = a*exp(-x/b)+ c*exp(-x/d)+ e
Currently, this is my code:
f3 = fitoptions('Method','NonlinearLeastSquares','Startpoint',[1,100,1,100,1])newrelax = fittype('q*exp(-x/r)+ s*exp(-x/t)+u','options',f3);[h,gof] = fit(timeR,stressR,newrelax)plot(h,timeR,stressR)
Thank you,
-Zach
Best Answer