Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

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

1 Ansicht (letzte 30 Tage)
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.

Antworten (1)

KSSV
KSSV am 18 Jul. 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.

Diese Frage ist geschlossen.

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by