average driving velocity !!!

1 次查看(过去 30 天)
alexandre
alexandre 2012-3-24
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 个评论
Jan
Jan 2012-3-24
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.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by