フィルターのクリア

Random secuence {-3,-1,1,3}

1 回表示 (過去 30 日間)
pizarro
pizarro 2014 年 10 月 22 日
編集済み: Rick Rosson 2014 年 10 月 22 日
Hi All, how can I build a random secuence to obtain this values {-3,-1,1,3}?

回答 (1 件)

Rick Rosson
Rick Rosson 2014 年 10 月 22 日
編集済み: Rick Rosson 2014 年 10 月 22 日
x = 2*randi([0 3],100,1) - 3;

カテゴリ

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