Random integer numbers using random function
显示 更早的评论
Hi, I am trying to obtain 9 random integer numbers and want them to be appeared in this form
expectedoutpt = '989898989' '897676767'
any suggestion?
采纳的回答
更多回答(1 个)
Jos (10584)
2014-2-10
Two strings of 9 random digits between 1 and 9 each (no 0?), stored in a row cell(?) array?
S = cellstr(char('0' + ceil(9*rand(2,9)))).'
类别
在 帮助中心 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!