Randomly changing a value of a matrix
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Phillip Smith
il 21 Nov 2019
Commentato: Phillip Smith
il 21 Nov 2019
Hello,
I've made a 5x5 matrix of zeros,
I want to randomly change one of the elements to a 1
How would i go about this?
Many thanks
0 Commenti
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!