Random Generator with known characters
이전 댓글 표시
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
gonzalo Mier
2019년 6월 13일
It seems like a homework. What did you try?
Jan
2019년 6월 14일
randi is a little bit easier.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Random Number Generation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!