random amount of zeros

2 ビュー (過去 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
  1 件のコメント
mahdi safarzadeh
mahdi safarzadeh 2013 年 11 月 1 日
tnx dear,

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeRandom Number Generation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by