How do you perform these operations on the software MATLAB? 2. Create the follow
ID: 2996198 • Letter: H
Question
How do you perform these operations on the software MATLAB?
2. Create the following matrix A:
(a) Create a matrix B by extracting the first column of matrix A.
(b) Create a matrix C by extracting the second row of matrix A.
(c) Use colon operator to create a matrix D by extracting the first through third columns of matrix A.
(d) Create a singled valued matrix E by extracting the value from second row, third column of matrix A i.e. A2,3.
(e) Create a matrix F by extracting the values of elements A1,3 , A2,4 , and A3,5 and combining them into a single matrix.
Explanation / Answer
A = [3.4 2.1 0.5 6.5 4.2; 4.2 7.7 3.4 4.5 3.9; 8.9 8.3 1.5 3.4 3.9]
A has only 15 elements, so there's no A24 or A35, unless you mean A(2,4) and A(3,5), and that's different...
B = [A(1,3) A(2,4) A(3,5)]'
C = [A B]
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.