random amount of zeros

1 次查看(过去 30 天)
mahdi safarzadeh
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