Loop multiple .kml files from directory

3 vues (au cours des 30 derniers jours)
Hampus Alfredsson
Hampus Alfredsson le 27 Mar 2018
I have a set of .kml files with information that I want to load one by one stack in a 3D array. I made the first step manually like this:
a = extractfield(kml2struct('Bus1.kml'),'Latitude');
b = extractfield(kml2struct('Bus1.kml'),'Longitude');
c(:,1,1) = a; c(:,2,1) = b;
So, c should be the 3D array and the next loop should perform:
a = extractfield(kml2struct('Bus2.kml'),'Latitude');
b = extractfield(kml2struct('Bus2.kml'),'Longitude');
c(:,1,2) = a; c(:,2,2) = b;
Etc...
How can I do this?

Réponses (0)

Catégories

En savoir plus sur Octave 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!

Translated by