i want to generate a vector of (1,10) size and value is in between 1 to 4

1 回表示 (過去 30 日間)
Sun Heat
Sun Heat 2018 年 10 月 15 日
回答済み: KSSV 2018 年 10 月 15 日
hh=[4 4 4 3 3 3 3 2 2 1]; like this
  1 件のコメント
Stephen23
Stephen23 2018 年 10 月 15 日
What is the rule or algorithm to generate those values?

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

採用された回答

KSSV
KSSV 2018 年 10 月 15 日
r = randi([1 4],1,10)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Coder についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by