View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

4.8 | 4 ratings Rate this file 5 Downloads (last 30 days) File Size: 3.18 KB File ID: #23187 Version: 1.0
image thumbnail



Andrew Stevens (view profile)


Create a scatter plot in Google Earth (.kml)

| Watch this File

File Information

GESCATTER creates a .kml file that displays colored circles at the locations specified by the vectors LON and LAT similar to ML's builtin function, SCATTER.The color of the circles is scaled relative to the values provided in third input, C.

I searched the FEX's many submissions dealing with exporting .kml files for Google Earth, but didn't find anything that was similar to ML's built-in function, SCATTER...a function I use regularly to visualize scattered data that are too sparse for gridding. This function is relatively easy to use, for example:

%generate some data
lon = -122.170087 + cos(x)*0.01;
lat = 37.455697 + x*0.001;
%color the points according to their latitude

MATLAB release MATLAB 7.7 (R2008b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (5)
19 Sep 2015 valentin polishchuk

17 Jan 2012 John Roshan

Works great!

The default placemark symbol and color could have been set to something more visible though.

08 Oct 2011 Chandrakumar

the foo.kml is which file?

Comment only
15 Mar 2010 Andre Guy Tranquille

it's grate!!!

05 Jan 2010 Jeff Tuhtan

Contact us