How do I randomly assign two integers to an array of strings?
Mostrar comentarios más antiguos
I have an array of strings and would like to randomly assign either a "1" or a "2" to each string. I need an equal amount of strings assigned to each integer.
I am new to matlab so I would appreciate any help. Thanks!
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Characters and Strings 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!