A function to make a gif animation of some light beams deflected by the gravity field of a star.
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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 (2026). Light beam deflection animation (https://github.com/NicolasDouillet/light_beam_deflection/releases/tag/v2.0), GitHub. Retrieved .
General Information
- Version 2.0 (1.84 KB)
-
View License on GitHub
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 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 |
