here I have converted each lap to there corresponding time
example
for 1st lap 0 to 1
t(1) is their corresponding time
and addition of times between that lap has been done
example for the time between 14 to 18 lap
will time for 15,16,17 and 18th lap
%program
clc
clear all
a=input('enter the initial lap : ');
b=input('enter the final lap:');
dis_one=3.426; %dis_one = distance in miles for one lap
n=b-a; %number of laps
d=dis_one*n; %distance covered in total
%loop for velocity matrix and corresponding time (seconds) matrix
for each lap
for i=1:56
if i<=12
v(i)=215;
t(i)=dis_one*3600/v(i);
elseif i<=29
v(i)=197;
t(i)=dis_one*3600/v(i);
elseif i<=43
v(i)=164;
t(i)=dis_one*3600/v(i);
else
v(i)=208;
t(i)=dis_one*3600/v(i);
end
end
if a-b==0
total_time=t(a);
end
for i=a+1:b
total_time(i)=t(i);
end
time=sum(total_time)
plz explain using matlab Write a program that calculates the time Alonso took between two given...