How to do curve fitting in my situation
3 views (last 30 days)
Show older comments
function specialcurve = MagCurv(Js,H0,A,H1,H2,n,B,H3,H4)
specialcurve = @mfunc;
function J = mfunc(H)
J = Js*atan(H./H0)*2/pi.*(1-A*exp(-((H+H1)/H2).^n)).*(1-B*exp(-((log(H+eps)-...
log(H3))/log(H4)).^2));
end
end
Now I have raw data of H and J (array 1*23) and I want to get parameters(Js,H0,A,H1,H2,n,B,H3,H4) through curve fitting. Is that possible?
Thanks a lot!
0 Comments
See Also
Categories
Find more on Get Started with Curve Fitting Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!