Vehicle speed calculation script

11 次查看(过去 30 天)
Hi I need M script file for Vehciel speed calculation and some basic mscript files for learning

回答(2 个)

Sam Chak
Sam Chak 2022-9-23
Here is a basic script to calculate the average vehicle speed:
Distance = 200; % km
Duration = 2.5; % hours
AvgSpeed = Distance/Duration % km/h
AvgSpeed = 80

Walter Roberson
Walter Roberson 2022-9-23
D = input('Enter distance vehicle travelled: ');
T = input('Enter time required for the travel: ');
vehicle_speed = D ./ T

类别

Help CenterFile Exchange 中查找有关 Automated Driving Toolbox 的更多信息

标签

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by