How do I randomly assign two integers to an array of strings?
Show older comments
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!
Accepted Answer
More Answers (0)
Categories
Find more on Characters and Strings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!