File Exchange

image thumbnail

Light beam deflection animation

version 2.0 (1.84 KB) by Mathworlds
A function to make a gif animation of some light beams deflected by the gravity field of a star.

4 Downloads

Updated 04 Jan 2021

From GitHub

View Version History

View license on GitHub

For pedagogic / scientific diffusion purposes.

F5 in Light_beam_deflection.m to run the main program and create the animation file named 'Light_beam_gravity_deflection.gif' that will appear in the same directory as you registered this .m file.

Some parameters -like the one for display- may be tuned in the file header
For instance set cmap to false to disable the colormap and the colorbar.

To benefit from all the file information, be sure to download the file, not to just copy and paste it.

Cite As

Mathworlds (2021). Light beam deflection animation (https://github.com/NicolasDouillet/light_beam_deflection/releases/tag/v2.0), GitHub. Retrieved .

Comments and Ratings (2)

Pink_panther

Very nice! Happy New Year Mathworlds

Alex Suchik

it's an interesting information

MATLAB Release Compatibility
Created with R2019b
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!