Advertisement
HTML

HOWAR_EGN1007_CH9.m

Jan 18th, 2019
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.84 KB | None | 0 0
  1. %% Problem 3
  2. 5^2
  3. (5 + 3) / (5 * 6)
  4. (4 + 6^3)^(1/2)
  5. 19/2 + 7 * 5^(3 + 2)
  6. 1 + 5 * 3 / 6^2 + 2^(2 - 4) * 1 / 5.5
  7.  
  8. %% Problem 4
  9. r = 5;
  10. A = pi * r^2
  11.  
  12. r = 10;
  13. A = 4 * pi * r^2
  14.  
  15. r = 2;
  16. V = 4/3 * pi * r^3
  17.  
  18. %% Problem 5
  19.  
  20. edge = 5;
  21. A = edge^2
  22.  
  23. edge = 10;
  24. SA = 6 * edge^2
  25.  
  26. edge = 12;
  27. V = edge^3
  28.  
  29. %% Problem 8
  30.  
  31. r = 3;
  32. h = [1, 5, 12];
  33. V = pi * 3^2 * h
  34.  
  35. b = [2, 4, 6];
  36. h = 12;
  37. A = (1/2 * b) * h
  38.  
  39. vdim = 6;
  40. V = A * vdim
  41.  
  42. %% Problem 12
  43.  
  44. x = 1:20
  45.  
  46. x = 1:(pi / 10):(2 * pi)
  47.  
  48. x = linspace(4, 20, 15)
  49.  
  50. x = logspace(1, 3, 10)
  51.  
  52. %% Problem 13
  53.  
  54. ft = 0:10;
  55. m = ft .* 0.3048;
  56. chart = [ft' , m']
  57.  
  58. rad = 0:0.1 * pi:pi;
  59. deg = rad .* (180 / pi);
  60. chart = [rad' , deg']
  61.  
  62. mph = linspace(0, 100, 15);
  63. fps = mph .* 1.467;
  64. chart = [mph' , fps']
  65.  
  66. %% Problem 14
  67.  
  68. g = 9.8;
  69. t = 0:5:100;
  70. d = (1/2 * g) * (t).^2;
  71. chart = [t' , d']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement