gamma function with two parameters
36 views (last 30 days)
Show older comments
i have to evaluate gamma function with two parameters. if i attempt to use gamma(a,b) i am getting error in matlab as too many input arguements. it is taking only one arguement. as per the attachment , how can i find the received power?
2 Comments
VBBV
on 28 Mar 2024
Edited: VBBV
on 28 Mar 2024
By definition in https://en.wikipedia.org/wiki/Gamma_function
it uses single parameter for defining a characteristic, Beta function uses two parameters. Do you mean beta instead of gamma ? May be you mean incomplete gamma function , if thats what you want, then try this
Dyuman Joshi
on 28 Mar 2024
"how can i find the received power?"
I don't understand what this means in the context of this question.
The mathematical definition of gamma function includes a single independent variable only, subsequently so does the matlab function gamma.
It's not clear what exactly you want to do.
Answers (2)
John D'Errico
on 28 Mar 2024
Edited: John D'Errico
on 28 Mar 2024
There is no common definition of a two parameter gamma "function" in mathematics. So whatever you are asking, you need to be more specific, if you have some specific thing you need to compute.
The two possibilities I can think of (and I am sure I may have missed something else, as there are infinitely many things you MIGHT want to do) are:
- A two parameter gamma probability distribution
- An incomplete gamma function
Each of those possibilities is available in MATLAB.
You can find the two parameter gamma PDF in the form of
help gampdf
And the incomplete gamma function, which is really an integral where the second parameter is the upper limit for that integral. MATLAB normalizes this integral by then dividing by gamma(x), because most of the time, that is how you will be using it.
help gammainc
Again, you may want to do something else. I've only made my two best guesses at what you may be thinking about.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!