フィルターのクリア

how do you ask matlab for a random word from dictionary?

4 ビュー (過去 30 日間)
zoom
zoom 2019 年 5 月 2 日
回答済み: KSSV 2019 年 5 月 2 日
randWord=randi(length(dictionary));
i tried using the code above and it gives me number instead of a word from the dictionary
  1 件のコメント
KSSV
KSSV 2019 年 5 月 2 日
What is dictionary here?

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

採用された回答

KSSV
KSSV 2019 年 5 月 2 日
idx=randperm(length(dictionary),1);
randword = dictionary{idx}

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by