Code covered by the BSD License  

Highlights from
Earth-sized Sphere with Topography

Be the first to rate this file! 21 Downloads (last 30 days) File Size: 2.87 KB File ID: #27123
image thumbnail

Earth-sized Sphere with Topography

by Will Campbell

 

30 Mar 2010

variation on the SPHERE command to facilitate plotting of orbital trajectories

| Watch this File

File Information
Description

Do you plot Earth-orbiting trajectories? Would you like to know how your orbit compares to the size of the Earth? If so, EARTH_SPHERE will help get you there.

This function is a modification of the built-in MATLAB command SPHERE. Rather than producing a sphere with a radius of 1, the radius of the sphere will equal that of the Earth. The user may specify the units they want to plot in: meters, kilometers, feet, miles, nautical miles, or astronomical units. EARTH_SPHERE will also display the Earth's topography in Earth-Centered-Earth-Fixed coordinates.

Examples:
earth_sphere('nm')
  produces an earth-sized sphere in nautical miles

earth_sphere(10,'AU')
  produces 10 point mesh of the Earth in astronomical units

h1 = gca;
earth_sphere(h1,'mile')
hold on
plot3(x,y,z)
  produces the Earth in miles on axis h1 and plots a trajectory from variables x, y, and z

MATLAB release MATLAB 7.10 (2010a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
aerospace Will Campbell 02 Apr 2010 09:51:13
space Will Campbell 02 Apr 2010 09:51:13
earth Will Campbell 02 Apr 2010 09:51:13
ecef Will Campbell 02 Apr 2010 09:51:13
orbit Will Campbell 02 Apr 2010 09:51:13
visualization Will Campbell 02 Apr 2010 09:51:13
plot Will Campbell 02 Apr 2010 09:51:13
surface Will Campbell 02 Apr 2010 09:51:13
utilities Will Campbell 02 Apr 2010 09:51:13
earth Robert Cline 28 Sep 2011 21:24:09

Contact us at files@mathworks.com