Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

answer this question as soon as possible and show full step. and 0 lease do it o

ID: 3886545 • Letter: A

Question


answer this question as soon as possible and show full step. and 0 lease do it on matlab

1. Create the following matrices, and use them in the exercises that follow: 15 3 22 a=| 3 8 5 | L14 382] b=15| 6 c= [12 18 5 2] (a) Create a matrix called d from the third column of matrix a. (b) Combine matrix b and matrix d to create matrix e, a two-dimensional (c) Combine matrix b and matrix d to crcate matrix f, a onc-dimensional (d) Create a matrix g from matrix a and the first three elements of matrix c (e) Create a matrix h with the first element equal to as, the second ele- matrix with three rows and two columns. matrix with six rows and one column. with four rows and three columns. ment equal to q2, and the third element equal to 1.

Explanation / Answer

a = [15 3 22; 3 8 5; 14 3 82];
b=[1 ; 5 ; 6];
c = [12 18 5 2];
d=a(:,3)
e=[b d]
f=[b ; d]
z=c(1:3);
g=[a;z]
h=[a(1,3) c(1,2) b(2,1)]