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

1 Ansicht (letzte 30 Tage)
how int generating random 50 number between 0 to 27 and padding 000 all side?
:(

Akzeptierte Antwort

madhan ravi
madhan ravi am 1 Dez. 2018
Bearbeitet: madhan ravi am 1 Dez. 2018
a=randi([0 27],1,50)
padarray(a,[1,1],0) % requires image processing toolbox
  6 Kommentare
tomer kapuri
tomer kapuri am 2 Dez. 2018
thank you!!!
But if i search for an odd number?
how i do this?
madhan ravi
madhan ravi am 2 Dez. 2018
Anytime :) , that wasn't the original question so post a separate question.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by