MATLAB Answers

How to calculate different velocity zones

3 views (last 30 days)
Aragorn23
Aragorn23 on 31 Oct 2017
Answered: Kuifeng on 31 Oct 2017
Hi all. I have the x and y coordinates of a moving object. I already calculated the total distance and the average velocity of that object. However, I want to know the object velocity, in four different velocity zones, over time. How can I do it?

  3 Comments

Image Analyst
Image Analyst on 31 Oct 2017
What is a "velocity zone"? You can get the velocity at every single time point. But what do you want to do with that to know what it is in a "velocity zone"?
Aragorn23
Aragorn23 on 31 Oct 2017
Maybe "velocity zones" are not the best expression. I want to know the object velocity in diferent speed categories (low, moderate, high...).
KSSV
KSSV on 31 Oct 2017
If you have (x,y) coordinates/ locations / positions at different time steps...then dx/dt gives velocity.

Sign in to comment.

Answers (1)

Kuifeng
Kuifeng on 31 Oct 2017
I believe the categorical function is what you ware looking for. Check categorical function and check 'Bin Numeric Data into Categories'

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!