Take part of pcolor

조회 수: 1 (최근 30일)
Giacomo Abrardo
Giacomo Abrardo 2021년 4월 17일
답변: Shubham Khatri 2021년 4월 23일
I'm working on a project for my university. I have a file NC with lat, long and the data for each point. The plot covers all Europe but i want to display only part of Italy. I just find on internet the boundary of my region. How can i do to plot only the part that i want.
Thanks all
  댓글 수: 3
Giacomo Abrardo
Giacomo Abrardo 2021년 4월 17일
Yes the boundary is from a Shape File. I speak with my university prof and he suggest poly2mask but looking on internet i think inpolygon is better. i don't know which is better of if there is some function better
Bjorn Gustavsson
Bjorn Gustavsson 2021년 4월 18일
From the information given inpolygon seems to be the function to use. poly2mask are a similar enough function but seems to be tailored to return a mask for pixels in image.

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

채택된 답변

Shubham Khatri
Shubham Khatri 2021년 4월 23일
Hello,
To my understanding you can use inpolygon. You can also compare both the functions from there codes.
For more information you can visit the documentation link for inpolygon and poly2mask.
Hope it helps

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Timing and presenting 2D and 3D stimuli에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by