Random array Coordinates for certain elements
Afficher commentaires plus anciens
If I have an array 397x596 size filled with 1 and 0, is there a method where I could generate a random coordinate of the array that has element of 0?
So far I have used [row, column] = find(house == 0); to find the coordiantes containing 0
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!