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

Hi All, how can I build a random secuence to obtain this values {-3,-1,1,3}?

Antworten (1)

Rick Rosson
Rick Rosson am 22 Okt. 2014
Bearbeitet: Rick Rosson am 22 Okt. 2014

0 Stimmen

x = 2*randi([0 3],100,1) - 3;

Kategorien

Mehr zu Random Number Generation finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 22 Okt. 2014

Bearbeitet:

am 22 Okt. 2014

Community Treasure Hunt

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

Start Hunting!

Translated by