i have two number i want choose one of them randomly!
6 ビュー (過去 30 日間)
古いコメントを表示
i have two string number i want choose one of them randomly can you help me please?
0 件のコメント
採用された回答
Azzi Abdelmalek
2013 年 12 月 29 日
編集済み: Azzi Abdelmalek
2013 年 12 月 29 日
str={'10' '20'}
idx=randi(2)
out=str(idx)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で String Parsing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!