Filter löschen
Filter löschen

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

6 Ansichten (letzte 30 Tage)
fatemeh
fatemeh am 29 Dez. 2013
Kommentiert: fatemeh am 29 Dez. 2013
i have two string number i want choose one of them randomly can you help me please?

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 29 Dez. 2013
Bearbeitet: Azzi Abdelmalek am 29 Dez. 2013
str={'10' '20'}
idx=randi(2)
out=str(idx)

Weitere Antworten (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by