Make Line Bounce when Axis hits

I made a user input line plot. I want it to simulate a laser beam. Once the user clicks, the line is set and it's plotted. I want the line to bounce off and move in the opposite direction once it hits the right and left y-axis. I want it to do the same for the x axis at the top. Any ideas and/or pointers? Thank so much

回答 (1 件)

Image Analyst
Image Analyst 2019 年 11 月 27 日

0 投票

See code I gave in my other answer

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

製品

リリース

R2019a

質問済み:

2019 年 11 月 27 日

回答済み:

2019 年 11 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by