random amount of zeros

1 vue (au cours des 30 derniers jours)
mahdi safarzadeh
mahdi safarzadeh le 1 Nov 2013
Hi guys, I want to produce random amount of zeros. How can I do that? tnx,

Réponses (1)

dpb
dpb le 1 Nov 2013
zeros(1,randi(IMAX))
where IMAX is a preselected maximum number
  1 commentaire
mahdi safarzadeh
mahdi safarzadeh le 1 Nov 2013
tnx dear,

Connectez-vous pour commenter.

Catégories

En savoir plus sur Random Number Generation dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by