Filter löschen
Filter löschen

random amount of zeros

1 Ansicht (letzte 30 Tage)
mahdi safarzadeh
mahdi safarzadeh am 1 Nov. 2013
Hi guys, I want to produce random amount of zeros. How can I do that? tnx,

Antworten (1)

dpb
dpb am 1 Nov. 2013
zeros(1,randi(IMAX))
where IMAX is a preselected maximum number

Kategorien

Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by