Code covered by the BSD License  

Highlights from
GESCATTER

4.66667

4.7 | 3 ratings Rate this file 21 Downloads (last 30 days) File Size: 3.18 KB File ID: #23187
image thumbnail

GESCATTER

by Andrew Stevens

 

04 Mar 2009

Create a scatter plot in Google Earth (.kml)

| Watch this File

File Information
Description

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
 x=(0:0.05:6*pi);
lon = -122.170087 + cos(x)*0.01;
lat = 37.455697 + x*0.001;
 
%color the points according to their latitude
gescatter('foo.kml',lon,lat,lat)

MATLAB release MATLAB 7.7 (R2008b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
05 Jan 2010 Jeff Tuhtan  
15 Mar 2010 Andre Guy Tranquille

it's grate!!!

08 Oct 2011 Chandrakumar

the foo.kml is which file?

17 Jan 2012 John Roshan

Works great!

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

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
data export Andrew Stevens 05 Mar 2009 12:36:29
google earth Andrew Stevens 05 Mar 2009 12:36:29
kml Andrew Stevens 05 Mar 2009 12:36:29
scatter Andrew Stevens 05 Mar 2009 12:40:37
kml Frank 26 May 2009 12:02:29
data export Allan Saja 02 Jun 2009 08:08:27
google earth Karthik 22 Oct 2009 11:38:41
kml Pritesh 08 Jun 2011 13:24:28

Contact us at files@mathworks.com