i have two number i want choose one of them randomly!
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
i have two string number i want choose one of them randomly can you help me please?
0 Commenti
Risposta accettata
Azzi Abdelmalek
il 29 Dic 2013
Modificato: Azzi Abdelmalek
il 29 Dic 2013
str={'10' '20'}
idx=randi(2)
out=str(idx)
Più risposte (0)
Vedere anche
Categorie
Scopri di più su String Parsing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!