フィルターのクリア

I need to know if there is a any function in matlab to choose random numbers from a given list. The list is given by the user. Suppose the list is (4,9,10,18,2) each time I want one value to be taken for calculation what function do I use?

1 回表示 (過去 30 日間)
Is there a function like that?

採用された回答

madhan ravi
madhan ravi 2019 年 2 月 10 日
yourlist(randi(numel(yourlist)))
  3 件のコメント
Kamali M
Kamali M 2019 年 2 月 12 日
Sir
out of a list if I want to take each element in an order then what function do I use?
madhan ravi
madhan ravi 2019 年 2 月 12 日
Can you illustrate with an example?

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

その他の回答 (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