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

2 views (last 30 days)
how int generating random 50 number between 0 to 27 and padding 000 all side?
:(

Accepted Answer

madhan ravi
madhan ravi on 1 Dec 2018
Edited: madhan ravi on 1 Dec 2018
a=randi([0 27],1,50)
padarray(a,[1,1],0) % requires image processing toolbox
  6 Comments
madhan ravi
madhan ravi on 2 Dec 2018
Anytime :) , that wasn't the original question so post a separate question.

Sign in to comment.

More Answers (0)

Categories

Find more on Resizing and Reshaping Matrices in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!