Hi all,
I have a cell denoting 4 grid blocks like this:
parameter{:}ans = 1.5000 1.5000 1.7500 1.5000 1.7500 1.7500 1.5000 1.7500ans = 1.5000 1.7500 1.7500 1.7500 1.7500 2.0000 1.5000 2.0000ans = 1.7500 1.5000 2.0000 1.5000 2.0000 1.7500 1.7500 1.7500ans = 1.7500 1.7500 2.0000 1.7500 2.0000 2.0000 1.7500 2.0000
My question is, if now I have a x-y coordinate, say x = 1.63, y = 1.05, how can I loop through these 4 cells to determine whether x-y is in polygon or not? I think this can be solved by apply inpolygon using cellfun for all cell elements, but I'm not too sure about how to do it.
Many thanks!
Best Answer