makedist gives error when applied to Gamma distribution

Hello,
I get the following error using makedist('Gamma','a',number 1,'b',number 2)
"Error using makedist (line X)
Distribution name 'Gamma' is unrecognized."
Any idea what is going on? Thanks

9 Comments

Which release are you using?
As a work-around, try using 'gamma' instead of 'Gamma'
I tried both Matlab R2016b and R2017a. I tried 'gamma' with the same results :(
Thank you for your response
I will install R2016b locally to test. While we are waiting on that, please show
which -all makedist
Works for me when I test in R2016b.
Thank you, I have no idea how but it is working again. Puzzling.
For what is worth I get /Applications/MATLAB_R2016b.app/toolbox/shared/statslib/makedist.m
Is there a makedist solution for a 3 parameter weibull distribution?
It only exists for a 2 parameter weibull distribution...
Hello!
I am getting an error as "Distribution name 'nakagami' is unrecognized." while running the line "
pd = makedist('nakagami','mu',msr1,'omega',omg);
I have installed version R2021a.
Please help!!!!
msr1 = randn;
omg = rand;
pd = makedist('nakagami','mu',msr1,'omega',omg)
pd =
NakagamiDistribution Nakagami distribution mu = 0.508601 omega = 0.689648
Seems to work for me in R2021a. It needs the Statistics and Machine Learning Toolbox.
There appears to be another makedist() from Simulink Design Optimization Toolbox that does not support that distribution; https://www.mathworks.com/help/sldo/ref/makedist.html
I had the same issue with R2022b. Installing the Statistics and Machine Learning Toolbox add-on solved it.

Sign in to comment.

Answers (0)

Categories

Asked:

on 24 Apr 2019

Commented:

on 7 Feb 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!