Borrar filtros
Borrar filtros

i have two number i want choose one of them randomly!

6 visualizaciones (últimos 30 días)
fatemeh
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?

Respuesta aceptada

Azzi Abdelmalek
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)

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!

Translated by