How to find area between two shapes in MATLAB?
<p><a href="https://i.stack.imgur.com/6B6dw.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6B6dw.gif" alt="enter image description here"></a>
This image has a number of closed polygons. What I need is the area between these polygons. So I figured that I could subtract area of each of these polygons from the whole.</p>

<p>The whole area would look something like the red outline but I do not know how to get it. So that is what i need. </p>

<p>If I can obtain the area between the polygons by any other method please do share those methods too.</p>

<p>Please try writing the entire code as this is my first time with any kind of coding! Thanks!</p>