Errors I have never encountered:Error using randg

Error using randg
SHAPE must be a full real double or single array.
This error keeps appearing when generating beta random numbers.I encountered this kind of problem for the first time, how can I solve it?

4 件のコメント

Walter Roberson
Walter Roberson 2021 年 7 月 10 日
Speculation:
Your alpha or beta might perhaps be symbolic. betarnd() does not support symbolic.
Li Qing
Li Qing 2021 年 7 月 10 日
編集済み: Li Qing 2021 年 7 月 10 日
The alpha or beta is not symbolic. These are calculated by formulas.
Li Qing
Li Qing 2021 年 7 月 11 日
Print a and sizeOut to the console to find the problem.During operation, "a" (that is, alpha) becomes plural.
Walter Roberson
Walter Roberson 2021 年 7 月 11 日
Not plural, but complex.

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

回答 (1 件)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2021 年 7 月 10 日

0 投票

Maybe, you would need to refresh up your matlab with:
clear all
and restart it.

3 件のコメント

Li Qing
Li Qing 2021 年 7 月 10 日
Still report error.
Li Qing
Li Qing 2021 年 7 月 11 日
Thanks.I found the problem.
zhijian Peng
zhijian Peng 2021 年 11 月 5 日
您好,我也遇到了error using randg。请问您是怎么解决的呀?

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

カテゴリ

ヘルプ センター および File ExchangeMATLAB Report Generator についてさらに検索

質問済み:

2021 年 7 月 10 日

コメント済み:

2021 年 11 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by