Code covered by the BSD License  

Highlights from
Google Earth Toolbox

image thumbnail
from Google Earth Toolbox by scott lee davis
Various plotting/drawing functions that can be saved as KML output, and loaded in Google Earth

demo_ge_plot()
function demo_ge_plot()%% Demo ge_plot

a = 180*pi;

X = linspace(0,a,2*a);
Y1 = 10*sin(X);
Y2 = 5*cos(X);

kmlStr01 = ge_plot(X,Y1,...
             'lineWidth',5.0, ...
             'lineColor','ff32a4ff',...
           'msgToScreen',true,...
           'extrude',0);
       
kmlStr02 = ge_plot(X,Y2,...
            'lineWidth',5.0,...
            'lineColor','ff32ffa4',...
          'msgToScreen',true);

kmlFileName = 'demo_ge_plot.kml';
ge_output([kmlFileName],[kmlStr01,kmlStr02],...
                                                  'name',kmlFileName,...
                                           'msgToScreen',true);

Contact us at files@mathworks.com