Moving multiple points in an area at given velocity
Show older comments
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
Image Analyst
on 29 Aug 2023
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:
- What is the layout (locations) of the points in their initial locations?
- Is the 600 in units of meters?
- 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?
- 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.
Anu Sharma
on 29 Aug 2023
Anu Sharma
on 29 Aug 2023
Edited: Anu Sharma
on 29 Aug 2023
Answers (0)
Categories
Find more on Creating and Concatenating Matrices 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!