I want to fit a set of data with custom function. I wrote:
"" Wavelength=VarName3
Wavelength =
1.0e+03 * 0.6176 0.6273 0.6371 0.6482 0.6572 0.6684 0.6801 0.6902 0.7014 0.7103 0.7218 0.7333 0.7431 0.7524 0.7608 0.7721 0.7825 0.7934 0.8044 0.8179 0.8267 0.8365 0.8469 0.8565 0.8658 0.8771 0.8907 0.9028 0.9110 0.9215 0.9316 0.9407 0.9503 0.9605 0.9707 0.9797 0.9945 1.0004 1.0115
>> Intensity=VarName4
Intensity =
795.5000788.5000773.5000727.0000716.5000694.5000656.5000626.5000600.0000595.5000593.0000589.5000545.0000540.5000516.5000509.0000475.5000470.0000432.5000394.0000369.0000357.5000355.5000329.0000315.5000307.0000302.5000300.0000293.0000291.0000279.0000275.0000269.0000265.0000242.0000240.0000234.5000233.0000224.0000
>> f = fit(Wavelength , Intensity, 'a*100000000000*(x.^-5)*(exp(1.4E07/(T*x))-1).^-1', 'StartPoint', [10000,0.0014] )
f =
General model: f(x) = a*100000000000*(x.^-5)*(exp(1.4E07/(T*x))-1).^-1 Coefficients (with 95% confidence bounds):
T = 8917 (8406, 9428) a = 8.682e+06 (7.45e+06, 9.913e+06)>> plot( f,Wavelength,Intensity,'o' )""And I got the plot as follow
Now I want to extend the fitting curve further like this figure:
What should I do??? I need your help
Best Answer