Random integer numbers using random function
Mostra commenti meno recenti
Hi, I am trying to obtain 9 random integer numbers and want them to be appeared in this form
expectedoutpt = '989898989' '897676767'
any suggestion?
Risposta accettata
Più risposte (1)
Jos (10584)
il 10 Feb 2014
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)))).'
1 Commento
KnowledgeSeeker
il 10 Feb 2014
Categorie
Scopri di più su Creating and Concatenating Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!