kml.useRadians
Switch the current kml object to accept angular inputs in radians.
Contents
Syntax
kml.useRadians;
Description
kml.useRadians tells the current kml object to start accepting angular inputs in radians, such as latitude, longitude, roll, heading and tilt. It must be used before any other plot, as it will not affect plots created before using kml.useRadians
Example
% Create a new kml object k = kml('my kml file'); % Set Radians as default unit k.useRadians; % Plot a simple curve to the kml using radians as inputs t = linspace(0,2*pi,1000); k.plot(30*t, pi/2*cos(t/2)); % Save the kml and open it in Google Earth k.run;
This is the result of running this example:

This file is part of the kml toolbox. Copyright 2012 Rafael Fernandes de Oliveira (rafael@rafael.aero)