Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

How to label the interior of region as 2 where as boundary is already labelled as 4 for an object using Matlab coding

1 vue (au cours des 30 derniers jours)
M.S. Khan
M.S. Khan le 17 Juil 2019
Clôturé : MATLAB Answer Bot le 20 Août 2021
I am using grids with width 10. I want the interior to be filled as 2. As shown in attached figure. Than I want to count all filled cells of 4 and 2. Regards for cooperation.

Réponses (1)

KSSV
KSSV le 18 Juil 2019
AS you have coordinates for the boundary (i.e 4), use inpolygon and get the coordinates lying inside it. Label them or fill the value you want.

Cette question est clôturée.

Tags

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by