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.
Mathworlds (2021). Light beam deflection animation (https://github.com/NicolasDouillet/light_beam_deflection/releases/tag/v2.0), GitHub. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
Very nice! Happy New Year Mathworlds
it's an interesting information