フィルターのクリア

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

6 ビュー (過去 30 日間)
fatemeh
fatemeh 2013 年 12 月 29 日
コメント済み: fatemeh 2013 年 12 月 29 日
i have two string number i want choose one of them randomly can you help me please?

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 12 月 29 日
編集済み: Azzi Abdelmalek 2013 年 12 月 29 日
str={'10' '20'}
idx=randi(2)
out=str(idx)
  1 件のコメント
fatemeh
fatemeh 2013 年 12 月 29 日
thank you very much

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeString Parsing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by