i have 3 column of data lat ,long &depth. how can i select depth within a range of lat& long?

1 回表示 (過去 30 日間)
prajith kc
prajith kc 2014 年 2 月 19 日
回答済み: Jos (10584) 2014 年 2 月 19 日
lat long depth 3 column of data.

回答 (1 件)

Jos (10584)
Jos (10584) 2014 年 2 月 19 日
Using logical indexing. Assuming data holds the three columns, try this:
IsLatitudeInRange = data(:,1) > MinLatitude & data(:,1) < maxLatitude
IsLongitudeInRange = data(:,2) > MinLongitude & data(:,2) < maxLongitude
IsToInclude = IsLatitudeInRange & IsLongitudeInRange
DepthSelected = data(IsToInclude,:)

カテゴリ

Help Center および File ExchangeOther Formats についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by