Generating combination of matrix with 3 elements
Afficher commentaires plus anciens
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 commentaires
David Hill
le 16 Fév 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
le 16 Fév 2022
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!