Guest User

Untitled

a guest
Dec 10th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. diary on
  2. distance=[1060,850,640,750,450,630,370,410,200,570];
  3. time=[15.9,13.1,11.7,12.6,8.3,10.9,7.5,8.0,4.5,10.4];
  4. speed=[];
  5. speed=distance./time;
  6. speed
  7.  
  8. speed =
  9.  
  10. Columns 1 through 6
  11.  
  12. 66.6667 64.8855 54.7009 59.5238 54.2169 57.7982
  13.  
  14. Columns 7 through 10
  15.  
  16. 49.3333 51.2500 44.4444 54.8077
  17.  
  18. MEAN = sum(speed)/length(speed);
  19. MEAN
  20.  
  21. MEAN =
  22.  
  23. 55.7627
  24.  
  25. mean(MEAN)
  26.  
  27. ans =
  28.  
  29. 55.7627
  30.  
  31. MAX = max(speed);
  32. MAX
  33.  
  34. MAX =
  35.  
  36. 66.6667
  37.  
  38. distance(1)=900;
  39. distance(3)=600;
  40. distance(5)=400;
  41. time(1)=15;
  42. time(3)=11;
  43. time(5)=8;
  44. speed=distance./time;
  45. MIN = min(speed);
  46. MIN
  47.  
  48. MIN =
  49.  
  50. 44.4444
  51.  
  52. diary off
Add Comment
Please, Sign In to add comment