Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Consider the below matrix A , which you can copy and paste directly into Matlab. The matrix contains 3 columns, which represent the final grades
Consider the below matrix A, which you can copy and paste directly into Matlab. The matrix contains 3 columns, which represent the final grades in a course with 3 sections of equal size. The first column is C01, the second is C02, and the third is C03. A = [19.7 91.51 99.82;13.72 29.39 17.35;49.03 23.33 100;34.81 93.64 100;25.97 10.71 64.58;24.49 21.28 69.14;85.3 19.57 77.82;61.61 94.41 34.57;46.92 75.39 92.38;36.73 13.46 30.67;71.01 33.13 37.45;72.99 5.75 29.57;91.53 46.64 78.84;10.94 100 72.76;53.83 41.6 40.13;89.41 55.84 17.58;80.01 28.94 100;45.67 73.4 91.84;100 55.26 53.71;54.96 24.81 81.75;80 28.43 99.43;45.39 50.84 100;80.67 67.65 36.11;89.18 13.83 86.73;26.15 77.41 48.51;68.02 81.21 51.52;67.4 36.73 63.17;79.34 24.24 42.25;31.03 97.92 95.9;30.37 82.8 100;69.82 25.94 21.76;99.29 96.03 96.86;42.24 99.39 81.33;15.86 23.82 75.58;45.73 96.92 88.06;100 100 86.19;52.48 17.42 32.18;40.38 66.6 100;78.98 61.26 45.45;100 76.48 82.41;48.96 59.7 100;77.72 22.82 100;66.4 65.53 17.01;100 6.17 58.74;28.56 18.58 60.13;100 10.86 70.01;51.76 99.95 30.13;70.64 11.57 71.12;18.32 100 39.6;34.72 34.51 36.52;99.42 96.63 80.8;100 78.47 37.36;31.11 100 46.49;100 63.95 42.56;27.37 65.05 20.18;24.28 73.66 66.03;46.52 57.77 86.08;100 44.21 83.78;86.11 82.39 68.56;67.73 98.54 31.45;37.03 81.94 100;63.74 21.04 48.66;100 72.64 77.61;100 66.12 29.3;21.07 99.63 58.96;100 14.3 20.35;78.02 7.5 72.42;92.31 80.5 100;57.84 71.15 63.26;59.01 98.26 40.63;34.74 89.5 38.86;20.44 97.34 21.35;81.66 8.13 24.58;63.22 49.8 79.95;11.71 71.64 100;35.43 26.82 51.77;79.13 32.54 84.89;34 23.1 99.37;41.21 41.91 97.19;97.78 68.93 70.44;49.96 99.89 19.69;89.03 66.51 100;88.5 11.12 22.16;41.51 38.46 16.9;74.33 28.6 100;100 100 24.93;73.11 84.59 62.88;28.71 98.87 26.74;45.32 30.31 100;82.79 100 15.08;57.16 54.81 100;86.76 100 28.61;31.6 36.98 84.05;60.87 38.04 83.71;81.91 23.49 36.67;28.47 62.2 39.04;72.46 50.82 100;28.1 40.15 44.65;16.88 36.37 21.23;48.88 73.35 96.99;65.5 83.96 18.51;85.17 52.3 96.37;97.95 65.39 90.79;100 70.31 78.6;14.01 35.16 45.18;66.35 60.37 91.7;67.48 32.96 46.06;49.94 100 18;48.17 100 85.78;60.45 100 34.28;100 52.88 27.15;60.73 37.91 97.44;26.16 17.32 86.9;13.97 63.84 76.35;100 20.91 83.56;18.42 14.81 100;14.43 76.77 67.6;90.12 94.99 100;15.74 94.35 85.84;91.18 100 64.13;29.32 51.28 100;51.21 39.37 80.11;100 5.56 52.9;100 39.22 18.6;72.01 35.83 25.55;19.81 89.67 16.32;100 47.73 23.15;59.03 33.92 29.4;58.24 93.28 81.19;64.28 66.94 43.71;72.52 23.68 90.32;49.11 36.31 47.22;100 14.2 56.1;96.71 71.63 38.16;46.6 97.19 51.43;85.5 72.92 84.15;78.68 18.48 32.96;17.15 18.85 53.35;47.38 21.91 63.81;50.89 45.41 56.14;99.47 61.14 100;18.15 38.44 52.6;83.69 86.53 96.9;74.1 21.05 63.45;93.12 96.43 33.51] |
(a) | Use the colon operator to extract the marks from C01, and then find the average of those marks (using the 'sum' and 'length' commands). |
(b) | Use vertical concatenation to create a single column vector consisting of all of the marks from all 3 sections. Then find the overall class average. |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started