Vehicle speed calculation script
조회 수: 13 (최근 30일)
이전 댓글 표시
Hi I need M script file for Vehciel speed calculation and some basic mscript files for learning
댓글 수: 0
답변 (2개)
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
댓글 수: 0
Walter Roberson
2022년 9월 23일
D = input('Enter distance vehicle travelled: ');
T = input('Enter time required for the travel: ');
vehicle_speed = D ./ T
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Control System Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!