Random secuence {-3,-1,1,3}
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi All, how can I build a random secuence to obtain this values {-3,-1,1,3}?
0 Kommentare
Antworten (1)
Rick Rosson
am 22 Okt. 2014
Bearbeitet: Rick Rosson
am 22 Okt. 2014
x = 2*randi([0 3],100,1) - 3;
0 Kommentare
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!