How to extract a region from a country?

조회 수: 4 (최근 30일)
Sritoma Bose
Sritoma Bose 2021년 9월 14일
답변: Tushar Sharma 2024년 10월 29일
I have a map of India,i want to extract a state of the country,so how do i do this? I want to extract the state exactly say for example Maharashtra so,how would i extract it?
  댓글 수: 2
源樹 上林
源樹 上林 2021년 9월 14일
How's this?
https://jp.mathworks.com/matlabcentral/answers/46205-how-can-i-plot-boundary-of-india
Sritoma Bose
Sritoma Bose 2021년 9월 14일
Hi,thank you,but i need to extract the datas of that region to work on

댓글을 달려면 로그인하십시오.

답변 (1개)

Tushar Sharma
Tushar Sharma 2024년 10월 29일
Hi Sritoma,
I'm assuming you have the Shapefile data for India. If not, you can download it from - https://www.igismap.com/download-india-administrative-boundary-shapefiles-states-districts-sub-districts-pincodes-constituencies/.
This data will serve as a closed region. You can use the "inpolygon" function to find the points within India's boundaries and extract the data—such as state capitals—from these points.
For more information on the "inpolygon" function, please visit - https://www.mathworks.com/help/matlab/ref/inpolygon.html

카테고리

Help CenterFile Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by