uthow can i code for. accelaration when velocity and time is given in the spread sheet.

3 views (last 30 days)
this is data of velocity and time please help me out in coding for acceleration.

Accepted Answer

Arif Hoq
Arif Hoq on 21 Feb 2022
A=readmatrix('udds.xlsx');
sqr=A(:,1).^2;
acceleration=sqr./A(:,2); % acceleraiton= v^2/t ; accelration for each time
whole_acceleration=sum(sqr)/sum(A(:,2)) % acceleration for all data
whole_acceleration = 3.1922e+04

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Tags

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!