Randomly changing a value of a matrix
    2 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
    Phillip Smith
 le 21 Nov 2019
  
    
    
    
    
    Commenté : Phillip Smith
 le 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 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
				En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

