필터 지우기
필터 지우기

makedist gives error when applied to Gamma distribution

조회 수: 11 (최근 30일)
Cristian Martinez
Cristian Martinez 2019년 4월 24일
댓글: Fabio 2023년 2월 7일
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
Walter Roberson
Walter Roberson 2021년 3월 18일
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
Fabio
Fabio 2023년 2월 7일
I had the same issue with R2022b. Installing the Statistics and Machine Learning Toolbox add-on solved it.

댓글을 달려면 로그인하십시오.

답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by