you have 2 files with coordinates and one matrix with polygon structure (each row is the polygon)
I need a program that:
1) Plot the polygons
2) The program should ask the user to click in an arbitrary polygon (use the MATLAB command ginput).
When this is done the program should compute in which polygon the user clicked.
This polygon should be marked in the figure and its number should be printed in the MATLAB command window. You should solve this by using the side function
N.B. NOT ALLOWED to use the MATLAB built-in command “inpolygon”.
3) Then, the program should compute the area of the chosen polygon and write this area in the command window
(NOT ALLOWED command “polyarea”).
4) Finally, the program should ask the user whether he/she wants to selects more polygons