How to select random numbers from array for creating new matrix?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Azad Asadov
am 11 Dez. 2018
Kommentiert: Azad Asadov
am 11 Dez. 2018
I have b1 array. b1=[-3,-1,1,3,5];
I want to create 3x4 matrix by using random elements of b1 array.
So, one of expected outputs:
ans= -1 5 -3 1
1 -3 5 -3
3 5 1 3
Anyone can help?
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Creating and Concatenating Matrices 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!