MATLAB: How to count scatter data surrounded by shapes

data countingMATLAB

How can I count how many pieces of data are wrapped around a particular shape?
I drew a shape and scattered the data on it.
The data of figures are RH2 and AT2.
The scatter data are humid1 and temp1.
How can I count scatter data surrounded by shapes?
I need expert help.
Thank you.
attachment : datas, m-file and image

Best Answer

Use inpolygon
Related Question