Light beam deflection animation

A function to make a gif animation of some light beams deflected by the gravity field of a star.
90 Downloads
Updated Mon, 04 Jan 2021 10:32:00 +0000

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

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

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!
Version Published Release Notes
2.0

See release notes for this release on GitHub: https://github.com/NicolasDouillet/light_beam_deflection/releases/tag/v2.0

1.3

All functions in one file. Added some comments

1.2

Cover img again

1.1

Cover img + title

1.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.