Generating random 50 number between 0 to 27 and padding 000 all side?

1 回表示 (過去 30 日間)
tomer kapuri
tomer kapuri 2018 年 12 月 1 日
コメント済み: madhan ravi 2018 年 12 月 2 日
how int generating random 50 number between 0 to 27 and padding 000 all side?
:(

採用された回答

madhan ravi
madhan ravi 2018 年 12 月 1 日
編集済み: madhan ravi 2018 年 12 月 1 日
a=randi([0 27],1,50)
padarray(a,[1,1],0) % requires image processing toolbox
  6 件のコメント
tomer kapuri
tomer kapuri 2018 年 12 月 2 日
thank you!!!
But if i search for an odd number?
how i do this?
madhan ravi
madhan ravi 2018 年 12 月 2 日
Anytime :) , that wasn't the original question so post a separate question.

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by