target1 posx1=10,p​osy1=20,v=​20,destina​tion posx2=100,posy2=20 and target2 pos2=20,posy2=50,v=5 and destination of target2 pos22=500,posy22=600 .how to plot two targets simultaneously and reach the destination of two targets with out any interfernce

1 view (last 30 days)
moving two targets
[Merged from duplicate question]
object1 x=10,y=20,v=30 and destination point x=1070,y=2000,v=20
object2 x=100,y=200,v=10 and destination point x=1200,y=4000,v=20
how to move objects simultaneously
  1 Comment
Walter Roberson
Walter Roberson on 1 Dec 2015
What do you mean by "and reach the destination of two targets with out any interference" ? Are there obstacles that might interfere?
Are those "v" intended to represent velocity? Velocity is a vector. Should we consider it to be 20 units in the direction of the destination?
If the "v" represent velocity, then clearly the first one will reach its target before the second one. What do you want to have happen when the first reaches its target: should it just stop?
What should the plot look like when it is happening? Should a line be left behind? Should markers just be moved to the new positions?

Sign in to comment.

Answers (0)

Categories

Find more on Configure Simulation Conditions in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!