How to solve a system of equations involving distribution?
Show older comments
gamcdf(3.01,a,b)=0.4
gamcdf(4.63,a,b)=0.6
how to solve for a and b?
I tried solver & evalin(symengine)
Accepted Answer
More Answers (1)
Andrei Bobrov
on 26 Dec 2011
EDIT [20:23MSD 26.12.2011]:
fh1 = @(x)[gamcdf(3.01,x(1),x(2));gamcdf(4.63,x(1),x(2))] - [.4;.6];
out = fsolve(fh1,[1;1])
Equation solved.
fsolve completed because the vector of function values is near zero
as measured by the default value of the function tolerance, and
the problem appears regular as measured by the gradient.
<stopping criteria details>
out =
1.6466
2.8322
2 Comments
Amin Zargar
on 26 Dec 2011
Walter Roberson
on 26 Dec 2011
Amin, which MATLAB version are you using?
Categories
Find more on Loops and Conditional Statements 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!