Generating combination of matrix with 3 elements
이전 댓글 표시
I want to optimally generate a 100 matrix, of size MxN using the combination of 3 elements (0,1,2) and save them into seperate mat files. Can someone please help. I dont want to generate the matrix randomly.
댓글 수: 3
David Hill
2022년 2월 16일
What do you mean by 1000 matrix? Do you just want the permutations of (0,1,2)?
p=perms([0 1 2]);
I don't get it: Why 100 matrices? What kind of combinations do you mean? If they are not random, what procedure is wanted instead?
perms(0:2)
And now?
By the way: This is not twitter: no hash before the tags.
Shourya
2022년 2월 16일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Random Number Generation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!