Errors I have never encountered:Error using randg
Show older comments
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 Comments
Walter Roberson
on 10 Jul 2021
Speculation:
Your alpha or beta might perhaps be symbolic. betarnd() does not support symbolic.
Li Qing
on 11 Jul 2021
Walter Roberson
on 11 Jul 2021
Not plural, but complex.
Answers (1)
Sulaymon Eshkabilov
on 10 Jul 2021
Maybe, you would need to refresh up your matlab with:
clear all
and restart it.
3 Comments
Li Qing
on 10 Jul 2021
Li Qing
on 11 Jul 2021
zhijian Peng
on 5 Nov 2021
您好,我也遇到了error using randg。请问您是怎么解决的呀?
Categories
Find more on MATLAB Report Generator in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

