Loop multiple .kml files from directory

3 visualizaciones (últimos 30 días)
Hampus Alfredsson
Hampus Alfredsson el 27 de Mzo. de 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?

Respuestas (0)

Categorías

Más información sobre Octave en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by