File Exchange

image thumbnail

Night On Earth

version (282 KB) by Sam Roberts
An animated moon orbiting the earth

1 Download

Updated 01 Sep 2016

View Version History

View License

Editor's Note: This was a File Exchange Pick of the Week

A simple animation of the earth orbiting the moon. The relative sizes of the earth and moon are correct, although the distance between them are not.

Cite As

Sam Roberts (2021). Night On Earth (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (5)

taraka pamidi

nice one

Bepi Bepo

Earth-Moon distance is out of scale. Orbital parameters are not considered! This is a totally unrealistic tool.

mohamed gaber

you need some realistic effects

F Moisy


Yogesh Mehta

doesn't work for me. Does it require any special modules?

??? Undefined function or method 'im2double' for input arguments of type 'uint8'.

Error in ==> nightonearth at 34
set(s,'cdata', im2double(topoud));

MATLAB Release Compatibility
Created with R2006b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!