Errors I have never encountered:Error using randg

조회 수: 1 (최근 30일)
Li Qing
Li Qing 2021년 7월 10일
댓글: zhijian Peng 2021년 11월 5일
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
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일
Maybe, you would need to refresh up your matlab with:
clear all
and restart it.
  댓글 수: 3
Li Qing
Li Qing 2021년 7월 11일
Thanks.I found the problem.
zhijian Peng
zhijian Peng 2021년 11월 5일
您好,我也遇到了error using randg。请问您是怎么解决的呀?

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

카테고리

Help CenterFile Exchange에서 Automotive에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by