swaping 2 random numbers from array
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
saphir alexandre
am 28 Apr. 2022
Kommentiert: saphir alexandre
am 28 Apr. 2022
hello,
I have an array x = [1,(randperm(20)+1)]
but i would like to swap 2 random numbers of that array while keeping 1 as my first integer
please let me know how to go about that
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!