MATLAB: View lat/long/alt as 3-d surface in google earth

google earthkml

I currently have a 256 by 256 matrix of altitude measurements all with associated lat/long positions. When I create a kml file and import to google earth, it only shows as points. I would like to have these values displayed as a surface in google earth.

Best Answer

To solve this, I downloaded a very large file from:
This gave me access to the KMLsurf function. From there, plotting was quite trivial. I used the following script to create the KML file and imported it into google earth. That's it! Be aware though, the file I downloaded was nearly 7 GB.
KMLsurf(lat,lon,alt)
The resulting underwater topography:
underwater landscape.PNG