120k views
2 votes
Given the following matrix K=[1,2,5,6;3,4,2,0;2,1,8,9], the output after evaluating the command K(2:3,1)' is

a) [3; 2]
b) [2; 5]
c) [3, 2]
d) [2, 3]

1 Answer

5 votes

Final answer:

The command K(2:3,1)' refers to taking the transpose of the submatrix of matrix K consisting of rows 2 to 3 and column 1, resulting in [3; 2].

Step-by-step explanation:

The given command K(2:3,1)' refers to taking the transpose of the submatrix of matrix K consisting of rows 2 to 3 and column 1.

Matrix K is:

[1,2,5,6;
3,4,2,0;
2,1,8,9]

Rows 2 to 3 are [3,4,2,0] and [2,1,8,9] respectively. Column 1 is [1,3,2]. Taking the transpose of this submatrix results in [3; 2]. Therefore, the correct output is option a) [3; 2].

User Kiruse
by
8.5k points