Animated Laser Bouncing in a 2D Box

A simple code for an animated line using MATLAB's animatedline
45.0 次下载
更新时间 2018/3/2

查看许可证

% 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.

引用格式

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. 检索来源 .

MATLAB 版本兼容性
创建方式 R2014b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Animation 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0