Clear Filters
Clear Filters

average driving velocity !!!

1 view (last 30 days)
alexandre
alexandre on 24 Mar 2012
Hi people,
am working under Simulink and want to calculate average driving velocity.
I have lookup table who´s look like:
time (s) 0 10 20 30 40 50 60 70 80 85
Velocity (km/h) 0 45 55 20 0 0 30 25 0 0
I need embedded function ( or better a bloc ) to estimate the " time where the velocity is different to zero" along the whole driving cycle
On this step of my simulation i just need a ( embedded ) function or bloc to calcute the deplacement time...
T(deplacement time) = T (time overall the cycle) - T ( V = 0 km/h )
Distance is the Integrale of the velocity over the time ( that´s not a problem )
=> V(average) = Distance / T(deplacement)
Thanks
  1 Comment
Jan
Jan on 24 Mar 2012
This is the 3rd question about the same problem now:
http://www.mathworks.com/matlabcentral/answers/797-how-do-i-write-a-good-answer-for-matlab-answers
http://www.mathworks.com/matlabcentral/answers/33251-average-driving-velocity
Please avoid distributing the information which is necessary to create an answer over different threads.

Sign in to comment.

Answers (0)

Categories

Find more on Simulink in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!