How to solve a system of equations involving distribution?
이전 댓글 표시
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)
채택된 답변
추가 답변 (1개)
Andrei Bobrov
2011년 12월 26일
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
Amin Zargar
2011년 12월 26일
Walter Roberson
2011년 12월 26일
Amin, which MATLAB version are you using?
카테고리
도움말 센터 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!