HTML

HOWAR_EGN1007_CH11.m incomplete

Jan 29th, 2019
368
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 2.80 KB | None | 0 0
  1. %% Problem 1
  2.  
  3. a = [15 3 22; 3 8 5; 14 3 82];
  4. b = [1; 5; 6];
  5. c = [12 18 5 2];
  6.  
  7. d = a(: , 3)
  8.  
  9. e = [b d]
  10.  
  11. f = [b; d]
  12.  
  13. g = [a; c(1:3)]
  14.  
  15. %% Problem 2
  16.  
  17. thermo_scores=[  1 68 45 92;
  18.                  2 83 54 93;    
  19.                  3 61 67 91;
  20.                  4 70 66 92;
  21.                  5 75 68 96;
  22.                  6 82 67 90;
  23.                  7 57 65 89;
  24.                  8  5 69 89;
  25.                  9 76 62 97;
  26.                 10 85 52 94;
  27.                 11 62 34 87;
  28.                 12 71 45 85;
  29.                 13 96 56 45;
  30.                 14 78 65 87;
  31.                 15 76 43 97;
  32.                 16 68 76 95;
  33.                 17 72 65 89;
  34.                 18 75 67 88;
  35.                 19 83 68 91;
  36.                 20 93 90 92];
  37.  
  38. student_5 = thermo_scores(5 , :)
  39.  
  40. test_1 = thermo_scores(: , 2)
  41.  
  42. std1 = std(thermo_scores(: , 2))
  43. std2 = std(thermo_scores(: , 3))
  44. std3 = std(thermo_scores(: , 4))
  45.  
  46. student1score = sum(thermo_scores(1 , 2:4));
  47. student1percent = mean(thermo_scores(1 , 2:4));
  48. student2score = sum(thermo_scores(1 , 2:4));
  49. student2percent = mean(thermo_scores(1 , 2:4));
  50. student3score = sum(thermo_scores(1 , 2:4));
  51. student3percent = mean(thermo_scores(1 , 2:4));
  52. student4score = sum(thermo_scores(1 , 2:4));
  53. student4percent = mean(thermo_scores(1 , 2:4));
  54. student5score = sum(thermo_scores(1 , 2:4));
  55. student5percent = mean(thermo_scores(1 , 2:4));
  56. student6score = sum(thermo_scores(1 , 2:4));
  57. student6percent = mean(thermo_scores(1 , 2:4));
  58. student7score = sum(thermo_scores(1 , 2:4));
  59. student7percent = mean(thermo_scores(1 , 2:4));
  60. student8score = sum(thermo_scores(1 , 2:4));
  61. student8percent = mean(thermo_scores(1 , 2:4));
  62. student9score = sum(thermo_scores(1 , 2:4));
  63. student9percent = mean(thermo_scores(1 , 2:4));
  64. student10score = sum(thermo_scores(1 , 2:4));
  65. student10percent = mean(thermo_scores(1 , 2:4));
  66. student11score = sum(thermo_scores(1 , 2:4));
  67. student11percent = mean(thermo_scores(1 , 2:4));
  68. student12score = sum(thermo_scores(1 , 2:4));
  69. student12percent = mean(thermo_scores(1 , 2:4));
  70. student13score = sum(thermo_scores(1 , 2:4));
  71. student13percent = mean(thermo_scores(1 , 2:4));
  72. student14score = sum(thermo_scores(1 , 2:4));
  73. student14percent = mean(thermo_scores(1 , 2:4));
  74. student15score = sum(thermo_scores(1 , 2:4));
  75. student15percent = mean(thermo_scores(1 , 2:4));
  76. student16score = sum(thermo_scores(1 , 2:4));
  77. student16percent = mean(thermo_scores(1 , 2:4));
  78. student17score = sum(thermo_scores(1 , 2:4));
  79. student17percent = mean(thermo_scores(1 , 2:4));
  80. student18score = sum(thermo_scores(1 , 2:4));
  81. student18percent = mean(thermo_scores(1 , 2:4));
  82. student19score = sum(thermo_scores(1 , 2:4));
  83. student19percent = mean(thermo_scores(1 , 2:4));
  84. student20score = sum(thermo_scores(1 , 2:4));
  85. student20percent = mean(thermo_scores(1 , 2:4));
Advertisement