Borrar filtros
Borrar filtros

random amount of zeros

1 visualización (últimos 30 días)
mahdi safarzadeh
mahdi safarzadeh el 1 de Nov. de 2013
Comentada: mahdi safarzadeh el 1 de Nov. de 2013
Hi guys, I want to produce random amount of zeros. How can I do that? tnx,

Respuestas (1)

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

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by