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

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.
Print a and sizeOut to the console to find the problem.During operation, "a" (that is, alpha) becomes plural.
Not plural, but complex.

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

답변 (1개)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2021년 7월 10일
Maybe, you would need to refresh up your matlab with:
clear all
and restart it.

댓글 수: 3

Still report error.
Thanks.I found the problem.
您好,我也遇到了error using randg。请问您是怎么解决的呀?

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

카테고리

도움말 센터File Exchange에서 MATLAB 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