How to select random numbers from array for creating new matrix?
조회 수: 5 (최근 30일)
이전 댓글 표시
I have b1 array. b1=[-3,-1,1,3,5];
I want to create 3x4 matrix by using random elements of b1 array.
So, one of expected outputs:
ans= -1 5 -3 1
1 -3 5 -3
3 5 1 3
Anyone can help?
댓글 수: 0
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!