Finding the perimeter of a region of a matrix where the matrix is made of zeros and ones
    9 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
Write a function, matrix_perimeter, that takes a matrix of ones and zeros as an input.  Assume the length and width of each cell is 1.  Your function should output the perimeter of the shaded area represented by ones in the input matrix. The matrix above should return 18 for the perimeter. Not real sure how to solve this after make a matrix 
1 commentaire
  Erivelton Gualter
      
 le 11 Nov 2019
				You mean something like this: https://www.geeksforgeeks.org/find-perimeter-shapes-formed-1s-binary-matrix/
Voir également
Catégories
				En savoir plus sur Surface and Mesh Plots 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!


