Generating combination of matrix with 3 elements
Mostrar comentarios más antiguos
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 comentarios
David Hill
el 16 de Feb. de 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
el 16 de Feb. de 2022
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Random Number Generation en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!