i have 3 column of data lat ,long &depth. how can i select depth within a range of lat& long?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
lat long depth 3 column of data.
0 commentaires
Réponses (1)
Jos (10584)
le 19 Fév 2014
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,:)
0 commentaires
Voir également
Catégories
En savoir plus sur Other Formats dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!