Vehicle speed calculation script

12 visualizzazioni (ultimi 30 giorni)
Prabaharan A
Prabaharan A il 23 Set 2022
Risposto: Walter Roberson il 23 Set 2022
Hi I need M script file for Vehciel speed calculation and some basic mscript files for learning

Risposte (2)

Sam Chak
Sam Chak il 23 Set 2022
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 il 23 Set 2022
D = input('Enter distance vehicle travelled: ');
T = input('Enter time required for the travel: ');
vehicle_speed = D ./ T

Categorie

Scopri di più su Control System Toolbox in Help Center e File Exchange

Tag

Prodotti


Release

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by