i have two number i want choose one of them randomly!
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
fatemeh
el 29 de Dic. de 2013
Comentada: fatemeh
el 29 de Dic. de 2013
i have two string number i want choose one of them randomly can you help me please?
0 comentarios
Respuesta aceptada
Azzi Abdelmalek
el 29 de Dic. de 2013
Editada: Azzi Abdelmalek
el 29 de Dic. de 2013
str={'10' '20'}
idx=randi(2)
out=str(idx)
Más respuestas (0)
Ver también
Categorías
Más información sobre String Parsing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!