One page of notes allowed. >> H = 20: 2: 31 %be careful No cell phones used duri
ID: 3822584 • Letter: O
Question
One page of notes allowed. >> H = 20: 2: 31 %be careful No cell phones used during test. Complete each instructions or response H = >> is command prompt >> A = 10 * rand(8, 6) >> =min(B) A = 4.02 9.03 7.80 5.75 6.49 6.87 J = 1.89 0.81 0.76 9.45 3.90 0.60 7.32 1.84 JI = 5 3 2.40 4.91 2.42 2.35 6.48 3.68 1.23 4.89 4.04 3.53 4.51 6.26 1.84 3.38 0.96 8.21 5.47 7.80 2.40 9.00 1.32 0.15 2.96 0.81 >> K = % mean of matrix B 4.17 3.69 9.42 0.43 7.45 9.29 0.50 1.11 9.56 1.69 1.89 7.76 K = 5.42 >> B = A (4: 1, 5: 6) >> % double jeopardy ! B = 4.51 6.26 5.47 7.80 2.96 0.81 7.45 9.29 1.89 7.76 M = 3.38 9.00 3.69 1.11 3.38 9.00 3.69 1.11 3.38 9.00 3.69 1.11 3.38 9.00 3.69 1.11 >> C = A(13; 16) % colon ! N = 7.80 7.80 7.80 7.80 0.60 0.60 0.60 0.60 6.48 6.48 6.48 6.48 6.26 6.26 6.26 6.26 C = >> D = A(12) >> D = P = 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 >> E = A(4, 2) E = >> Q = >> F = % matrix A is one argument Q = 4.89 4.89 4.89 4.89 4.89 4.89 4.89 4.89 4.89 4.89 4.89 4.89 F = 7.80 0.60 6.48 6.26 >> R = B. *D % be careful, dot operator G = linspace (20, 30, 6) R = =Explanation / Answer
C=A(13:16) %13th to 16th column wise
C =
3.3800 9.0000 3.6900 1.1100
D=A(12) %12th index columnwise
D = 4.8900
E=A(4,2) % 4th row 2nd column
E = 4.8900
F=diag(A,2) %diagonal of matrix from 3rd column
G=linspace(20,30,6 %creates the linearly spaced vector between range of 20 to 30 and 6 values
G =
20 22 24 26 28 30
H=20:2:31 %:creates colummn vector with inital value 20 and incremeents with 2 till 31
H =
20 22 24 26 28 30
[J,JL]=min(B) % where J - is the min value and JL - is index of the minimum value
J =
1.89000 0.81000
JL =
5 3
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.