random amount of zeros

조회 수: 1 (최근 30일)
mahdi safarzadeh
mahdi safarzadeh 2013년 11월 1일
댓글: mahdi safarzadeh 2013년 11월 1일
Hi guys, I want to produce random amount of zeros. How can I do that? tnx,

답변 (1개)

dpb
dpb 2013년 11월 1일
zeros(1,randi(IMAX))
where IMAX is a preselected maximum number

카테고리

Help CenterFile Exchange에서 Random Number Generation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by