请教, 如何产生一个取值为1的概率为二分之一,取值为-1的概率为二分之一的40*50的`随机矩阵。
이전 댓글 표시
如题随机矩阵的行列分别为40*50. 元素只有1和-1, 其中取1的概率为二分之一,取-1的概率为二分之一.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 随机数生成에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!