Loop multiple .kml files from directory
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Octave 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!