Make Line Bounce when Axis hits

6 visualizaciones (últimos 30 días)
Aarav Shah
Aarav Shah el 27 de Nov. de 2019
Respondida: Image Analyst el 27 de Nov. de 2019
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

Respuestas (1)

Image Analyst
Image Analyst el 27 de Nov. de 2019
See code I gave in my other answer

Categorías

Más información sobre Programming en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by