Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diary on
- distance=[1060,850,640,750,450,630,370,410,200,570];
- time=[15.9,13.1,11.7,12.6,8.3,10.9,7.5,8.0,4.5,10.4];
- speed=[];
- speed=distance./time;
- speed
- speed =
- Columns 1 through 6
- 66.6667 64.8855 54.7009 59.5238 54.2169 57.7982
- Columns 7 through 10
- 49.3333 51.2500 44.4444 54.8077
- MEAN = sum(speed)/length(speed);
- MEAN
- MEAN =
- 55.7627
- mean(MEAN)
- ans =
- 55.7627
- MAX = max(speed);
- MAX
- MAX =
- 66.6667
- distance(1)=900;
- distance(3)=600;
- distance(5)=400;
- time(1)=15;
- time(3)=11;
- time(5)=8;
- speed=distance./time;
- MIN = min(speed);
- MIN
- MIN =
- 44.4444
- diary off
Add Comment
Please, Sign In to add comment