Moving multiple points in an area at given velocity

How to write a code for random number of points moving in an area at a given velocity.
There are random number of points ( >=50) in an area of 600*600, moving from one point to another at given velocity (10m/s).
I want to move random number (>=50) of points in the given area (600*600).
Please help me with the random number (>=50) of points moving with the given velocity and to calculate the trajectory of the points.

3 Comments

This looks like a homework problem. If you have any questions ask your instructor or read the link below to get started:
Obviously we can't give you the full solution because you're not allowed to turn in our code as your own.
Questions needed to know:
  1. What is the layout (locations) of the points in their initial locations?
  2. Is the 600 in units of meters?
  3. What time resolution do you want? Like how often do you want the plot of the point locations updated? Every second? Every half second? Every 1/10th of a second?
  4. What direction do the points move? Random directions? All in the same direction? Or if you have a set of "final" locations for each point, then the direction is determined.
how we can write for 10 points.
we can assume any intial and final location of the data points.
The unit is 600m.
Time will be dependent on displacement/velocity
we can assume final location also.
we can assume velocity as 10m/s or anything. I just want the trajectory points and the frame work for writing the code for multiple moving points at a given velocity in any direction.

Sign in to comment.

Answers (0)

Categories

Asked:

on 29 Aug 2023

Edited:

on 29 Aug 2023

Community Treasure Hunt

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

Start Hunting!