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 comentarios

Speculation:
Your alpha or beta might perhaps be symbolic. betarnd() does not support symbolic.
Li Qing
Li Qing el 10 de Jul. de 2021
Editada: Li Qing el 10 de Jul. de 2021
The alpha or beta is not symbolic. These are calculated by formulas.
Li Qing
Li Qing el 11 de Jul. de 2021
Print a and sizeOut to the console to find the problem.During operation, "a" (that is, alpha) becomes plural.
Not plural, but complex.

Iniciar sesión para comentar.

Respuestas (1)

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

3 comentarios

Li Qing
Li Qing el 10 de Jul. de 2021
Still report error.
Li Qing
Li Qing el 11 de Jul. de 2021
Thanks.I found the problem.
您好,我也遇到了error using randg。请问您是怎么解决的呀?

Iniciar sesión para comentar.

Categorías

Más información sobre MATLAB Report Generator en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 10 de Jul. de 2021

Comentada:

el 5 de Nov. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by