Loop multiple .kml files from directory
3 views (last 30 days)
Show older comments
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?
0 Comments
Answers (0)
See Also
Categories
Find more on Octave in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!