generate uniform random numbers between -1 and +1 in matlab
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Sajid Sarwar
am 14 Dez. 2019
Kommentiert: Image Analyst
am 14 Dez. 2019
how o generate uniform random numbers between -1 and +1 in matlab?
0 Kommentare
Akzeptierte Antwort
David Hill
am 14 Dez. 2019
2*rand()-1;
2 Kommentare
Image Analyst
am 14 Dez. 2019
Did youi look at the help for rand()? It answers both your original question and this follow up question
randomMatrix = 2 * rand(rows, columns) - 1;
where you set rows and columns to whatever values you want.
Weitere Antworten (0)
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!