Animated Laser Bouncing in a 2D Box
Version 1.0.0.0 (1,22 KB) von
Karl Ezra Pilario
A simple code for an animated line using MATLAB's animatedline
% laser(L,W,T,N) plots a laser bouncing inside a 2D
% box of length L and width W with perfect mirrors
% as walls. It starts at (0,0) with an initial angle
% of T degrees, and it ends when it bounces off the
% walls N number of times already.
Zitieren als
Karl Ezra Pilario (2024). Animated Laser Bouncing in a 2D Box (https://www.mathworks.com/matlabcentral/fileexchange/66281-animated-laser-bouncing-in-a-2d-box), MATLAB Central File Exchange. Abgerufen .
Kompatibilität der MATLAB-Version
Erstellt mit
R2014b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- MATLAB > Graphics > 2-D and 3-D Plots > Animation >
Mehr zu Animation finden Sie in Help Center und MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.0.0 |