Questions 4- 13 refer to the following arrays: [2581114 171 3 6 9 12 15 18 s 10
ID: 3730959 • Letter: Q
Question
Questions 4- 13 refer to the following arrays: [2581114 171 3 6 9 12 15 18 s 10 15 20 25 30 A-4 7 10 13 16 19 B-35 40 45 50 55 60 65 70 75 80 85 90 5 8 11 14 17 20 16 9 12 15 18 21 9 8 7 6 5 4 3 2 1] 4) Which of the above arrays is also a vector? a) A vc)B d) both a and b e) all of the above 5) Which command will create array A? a) A-(2:3:17, 3:3:18, 4:3:19, 5:3:20, 6:3:21) b) A-12:3:17, 3:3:18, 4:3:19, 5:3:20, 6:3:21] c) A-[2:17:13; 3:18:3; 4:19:3; 5:20:3; 6:21:3] d) A-[2:3:17; 3:3:18; 4:3:19; 5:3:20; 6:3:21] e) none of the above 6) Which command will create array B? a) B-[linspace( 5,30,6);linspace(35,60,6) linspace(65,90,6)] b) B-[linspace( 5,30,5) linspace(35,60,5):linspace(65,90,5)] c) B [linspace( 30,5,5);linspace(60,5,35);linspace(90,5,65)] d) B-[linspace( 5,5,30);linspace(5,35,60);linspace(5,65,90)] e) B-linspace( 5,5,30) linspace(35,5,60) linspace(65,5,90)] 7) Which command will create array v? Avector(9:1) b) v-9:-1:1 c) v-matrix(9:1) d) v-linspace(1:9) e) none of the aboveExplanation / Answer
For 5) answer is e) none of the above
For 6) answer is a)[ linspace(5,30,6);linspace(35,60,6);linspace(65,90,6)]. Because in first row 5 is first element and 60 last & it has 6 elements in-between (5,30,6)
Same is case for last two rows.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.