How do I show a line being created (like an animation) between two points inside a plot?
Show older comments
Say I want to create a line between two points and want to show the line taking every step from the first point to the second point inside my plot. How would I go about creating this? For context, I am working on a robotics assignment that requires me to do this with a bug algorithm. I don't want a solution for the algorithm as it would take the fun out of it. Rather, I am just looking for a simple way of showing every step the line takes to join the two points. I currently have no idea what kind of code that would involve but I heard through the grapevine to use a stepsize.
Thank you in advance for any help!
Accepted Answer
More Answers (0)
Categories
Find more on Animation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!