plot gridded data only inside shapefile

조회 수: 2 (최근 30일)
F Schmid
F Schmid 2022년 5월 17일
답변: KSSV 2022년 5월 17일
I import a shapefile and have gridded data that exceeds the borders of the shapefile. How can i only plot the data within the shapefile?
shp = shaperead("Germany.shp");
data.Lat = linspace(0,90,200);
data.Lon = linspace(0,90,200);
data.Height = rand(1,200);

답변 (1개)

KSSV
KSSV 2022년 5월 17일
Read about inpolygon.

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by