Help dog chasing a man in matlab

  • MATLAB
  • Thread starter center15
  • Start date
  • #1
2
0

Main Question or Discussion Point

I need help???? can anybody help me??? I have to use Matlab. I am giving details of problem.

-a man starts in some initial location (xm,ym) and moves with a constant speed along the straight line of the predefined angle.
-a dog starts in another initial location (xd,yd) and moves towards a man with a constant speed in such a way that in each step it moves directly along the line connecting the current positions of a dog and a man
-the algorithm should terminate after the man’s move, if the distance between the man and the dog allows the dog to catch the man in its next step
-extra marks will be given if your implementation allows setting not only the initial velocity, but also the accelerations of both man and a dog.
-the algorithm must output the number of steps in which the dog catches the man.


http://pics-68.hi5.com/userpics/468/...799468.img.jpg
 
Last edited by a moderator:

Answers and Replies

  • #2
1,250
2
Try to indicate what you need help with.

You will use a for loop to go through time steps, and each step you will update the position of the dog and the man according to their velocities.
 
  • #4
2
0
I know that but how can I write kods in matlab???
 

Related Threads on Help dog chasing a man in matlab

  • Last Post
Replies
1
Views
3K
  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
1
Views
1K
  • Last Post
Replies
7
Views
3K
  • Last Post
Replies
2
Views
2K
Replies
0
Views
3K
  • Last Post
Replies
1
Views
1K
  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
5
Views
2K
  • Last Post
Replies
6
Views
4K
Top