Reducing Density in Geographical Data

1 vue (au cours des 30 derniers jours)
Noah Gilbert
Noah Gilbert le 27 Avr 2019
Réponse apportée : lvn le 9 Oct 2019
Hello,
I have a set of data, organized into four matrices (Length, Elevation, Latitude, Longitude). I am able to reduce the density of the latitude and longitude data using reducem, but I would like to apply the same filter to the length and elevation information so that the relations between each entry are preserved.

Réponses (1)

lvn
lvn le 9 Oct 2019
You first have to get the indices of which elements are preserved. With those you can construct new elevation, and length vectors. Something like this:
[lat2,lon2] = reducem(lat,lon);
[~,idx] = intersect(lat,lat2,'stable');
elevation2=elevation(idx);
length2=length(idx);

Catégories

En savoir plus sur Geographic Plots dans Help Center et File Exchange

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by