The average value of A * B. So can you decide, perhaps, A in terms of means (mu) and B?
A = mu/B
Of course, it was of no use if you did not know B. Or is it?
Look at your first expression. Can you replace?
gamcdf(2.11, mu/B, B) - gamcdf(1.61, mu/B, B) = 0.90
Does it bring you closer? May be. There will be no useful symbolic solution, except in terms of the most incomplete gamma function. How do you solve one equation numerically in one unknown in Matlab? Use fzero.
Of course, fzero is looking for a null value. But by subtracting 0.90, this is allowed.
Is it possible to define a function that fzero can use? Use function descriptor.
>> mu = 1.86;
>> gamfun = @(B) gamcdf(2.11, mu/B, B) - gamcdf(1.61, mu/B, B) - 0.90;
So give it a try. Before we do this, I always recommend plotting things.
>> ezplot(gamfun)
. , . , , fzero.
, . fzero, -, .
>> B = fzero(gamfun,[.0000001,.1])
B =
0.0124760672290871
>> A = mu/B
A =
149.085442218805
>> ezplot(@(x) gampdf(x,A,B))
"", .. , .
user85109