i have two number i want choose one of them randomly!
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
i have two string number i want choose one of them randomly can you help me please?
0 commentaires
Réponse acceptée
Azzi Abdelmalek
le 29 Déc 2013
Modifié(e) : Azzi Abdelmalek
le 29 Déc 2013
str={'10' '20'}
idx=randi(2)
out=str(idx)
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur String Parsing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!