6 clear 7 8L clc Speed 203040506070 10Reaction 6 9 1215182

6 clear 7 8L clc Speed= [ 20,30,40,50,60,70]; 10-Reaction= [ 6, 9, 12,15,18,21]; 11 Brak 12-p-plot (Braking,Speed,\' , Reaction, \'s\'); 13 14 xlabel (\'Speed (v) [kmphl) 15ylabel (\'Distance (d) [m] ) 16 title ( \'Reaction vs Braking Distance) 17 18 19 Braking=[ 6, 14, 24, 38, 55, 75 ]; grid legend (\'Braking\', \'Reaction\')

Solution

clc
close all

Speed=[20 30 40 50 60 70];
Reaction=[6 9 12 15 18 21];
Braking=[6 14 24 38 55 75];

plot(Speed,Reaction,\'-o\',Speed,Braking,\'-o\')

xlabel(\'Speed(v) [kmph]\')
ylabel(\'Distance(d) [m]\')
title(\'Reaction vs Braking Distance\')
legend(\'Braking\',\'Reaction\')
grid on

 6 clear 7 8L clc Speed= [ 20,30,40,50,60,70]; 10-Reaction= [ 6, 9, 12,15,18,21]; 11 Brak 12-p-plot (Braking,Speed,\' , Reaction, \'s\'); 13 14 xlabel (\'Speed

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site