MATLAB: Locate points inside region based on coordinates

coordinatepixel coordinateregion

Hi guys, MATLAB rookie here. I have a matrix of points distribution coordinates and binary image of a structure. What I want to do is to select the points that located inside the structure of the binary image and extract those points. I read about using "&" but clearly it didn't work when I try it. Could you guys share some insights?

Best Answer

doc inpolygon.