Opens a Google Earth kml file and reads the coordinates (x,y,z) into Matlab.
Would this still work if you converted your google earth pro in to UTM coordinates?
Great, but kml document breaks coordinates if there are more than 1000 points.
So in this function you just pick the first 1000 points.
Maybe with another if, you can check if there are a second block of coordinate.
Testing it out.
Nice function. I think you could make it much more robust to mis-placed spaces by using "xmlread" and then the W3C XML-handling classes, e.g.:
>> doc = xmlread(fileName);
>> c = doc.getElementsByTagName('coordinates').item(0);
>> coord_str = c.getChildNodes().item(0).getData();
Now reads multiple sets of coordinates. (x,y) can be in any coordinate system.
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.