how to use inpolygon ?

1 view (last 30 days)
pruth on 19 Oct 2015
Answered: Image Analyst on 19 Oct 2015
i have table. 1st column is latitude 2nd is longitude and 3rd is bromine data. this is a girded data.this data is actually collected by polar satellite .
so now i want bromine data over latitude = -37.48; longitude = 77.34; using polygon. can anybody help?

Answers (1)

Image Analyst
Image Analyst on 19 Oct 2015
Why do you want to use inpolygon()? Just use indexing:
indexesToUses = (latitude > -37.48) & (longitude > 77.34);
extractedBroming = bromine(indexesToUses);


Community Treasure Hunt

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

Start Hunting!

Translated by