Generating combination of matrix with 3 elements
Show older comments
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 Comments
David Hill
on 16 Feb 2022
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
on 16 Feb 2022
Accepted Answer
More Answers (0)
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!