Finding the confidance interval fminsearch
1 view (last 30 days)
Show older comments
%I have a problem finding the error of my parameters x(0) to x(3)
%i have 2 functions with 2 or 3 unknowns x(i) I measured M and Q as a function of time (Time2).
% to find the optimal solution I minimised the squared error of my functions.
% How can i find the individual error of my parameters and or their confidance intervals
modelMf=@(x) 1*x(1)*x(2)*(1-exp(-x(3)/1000*Time2)); %x = <S> , Minf, kbl
modelQf=@(x) 2*(x(2)-1)*(1-x(3)/1000*Time2./(exp(x(3)/1000*Time2)-1))+u*x(2)*(1-exp(-x(3)/1000*Time2));
LS=@(x)(sum((modelMf(x)-M).^2)+sum((modelQf(x) - Q).^2));
options = optimset();
[x0,fv] = fminsearch(LS,[1 1 0.01],options)
0 Comments
Answers (0)
See Also
Categories
Find more on Optimization 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!