Date: Dec 8, 2012 8:22 AM
Author: ariel
Subject: fitting ( cftool )

im trying to do a fitting between a vector and a function . 

my vector is a intensity summed by 20 degree angle (160-180) as a function of the beam radius, as the following pics describe :
this is the picture :
the imagesc pic after cutting by angle plus intensity graph by radius ( the angle is summed ) :

my try to to do fitting with cftool :

the function i try to do fitting with : sin(b*sin(atan(x./0.05)).^2).^2+c which i took from theory .

as you can see the fitting is total joke, and ideas ?