Random Generator with known characters
Mostrar comentarios más antiguos
I have a list of known character names Cat, Dog, Goose...etc. These names need to be randomly set into a matrix size 20 x 1
Would look like :
[Cat, Dog, Dog, Goose,Cat,..]
How would one go about using rand to create a matrix such as this.
Thank you!
2 comentarios
gonzalo Mier
el 13 de Jun. de 2019
It seems like a homework. What did you try?
Jan
el 14 de Jun. de 2019
randi is a little bit easier.
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!