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

조회 수: 1 (최근 30일)
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 CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by