Distribution name 'Lognormal' is unrecognized

14 ビュー (過去 30 日間)
Joy Shen
Joy Shen 2025 年 9 月 29 日
コメント済み: Walter Roberson 2025 年 10 月 27 日 17:29
I previously could run this line of code, however now it seems that makedist does not recognize it as I get the error, "Distribution name 'Lognormal' is unrecognized." The line of code is simply:
pd_frag{iDG}{iDM}=makedist("Lognormal",log(lam(iDM,iDG)),zeta);
when I check makedist, I only see six distributions loguniform, multinomial, normal, piecewiselinear, triangular, and uniform. I checked license('test', 'Statistics_Toolbox') and I get a 1 in return, so I'm assuming that's not the issue. My version is: MATLAB Version: 24.2.0.2773142 (R2024b) Update 2
Any ideas? Thanks
  2 件のコメント
Walter Roberson
Walter Roberson 2025 年 9 月 29 日
What do you get if you use
prob.ProbabilityDistributionRegistry.list('parametric')
?
Try also
makedist('-reset')
and then try your makedist again.
Joy Shen
Joy Shen 2025 年 9 月 29 日
the first also gives me the same 6 distributions I listed, and nothing seemed to happen when i did the second line of code. I restarted Matlab and tried the reset line again and no change.

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2025 年 9 月 29 日
It sounds as if you have Simulink Design Optimization installed, getting https://www.mathworks.com/help/sldo/ref/makedist.html but that you do not have Statistics and Machine Learning toolbox installed.
  2 件のコメント
Joy Shen
Joy Shen 2025 年 10 月 27 日 16:52
I find it strange, when I type ver I don't see the Statistics and Machine Learning Toolbox pop up but looking at my Add-Ons, it says it's installed. Additionally when I run license('test','Statistics_Toolbox') it returns a 1.
Walter Roberson
Walter Roberson 2025 年 10 月 27 日 17:29
license test does not tell you anything about whether you have the software installed: it just tells you that your license includes Statistics and Machine Learning Toolbox.
I recommend re-installing the toolbox. First use the Add-Ons to select the toolbox, and from there "Manage" the toolbox and uninstall it. Then re-install.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

タグ

製品


リリース

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by