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

4 visualizaciones (últimos 30 días)
how int generating random 50 number between 0 to 27 and padding 000 all side?
:(

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Resizing and Reshaping Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by