curve fitting for the optimal value of a constant
2 views (last 30 days)
Hey here, I am trying to find the value of k(unknown constant) and for that I have collected data points from a curve and then fit into other(as attached). I had found the result i.e., 0.1300 but it isn't matching with the result which is 1.
So, can anybody tell me if there is any mistake.
h=findobj(gca, 'Type', 'line');
k0 = rand()*10;
bestk = lsqcurvefit( @(k,R)(1./((sqrt((k.^2)+(R.^2))).*(e.^2))), k0, R, V)