How can I make a random array with values of either -1 or 1?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Quinlin Hamill
am 24 Okt. 2016
Kommentiert: Quinlin Hamill
am 24 Okt. 2016
I'm trying to use randi to make a matrix filled with either -1 or 1 however randi also includes 0s.
0 Kommentare
Akzeptierte Antwort
Siehe auch
Kategorien
Mehr zu Random Number Generation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!