1. Create the 3 row by 4 column matrix A shown below. A = [ 1 2 3 4 ] [ 5 6 7 8
ID: 3550732 • Letter: 1
Question
1. Create the 3 row by 4 column matrix A shown below.
A = [ 1 2 3 4 ]
[ 5 6 7 8 ]
[ 9 10 11 12]
2. Create a 3 element row vector b with entries -2, ?, and 7/3. Then create a 3 element column
vector c with entries 19, 11, and 45.
b = [?2 ?? 7/3] c = [19]
[11]
[45]
Using concatenation, create a 3 by 6 matrix D where the first two columns are c, with A (from
problem 1) in the last columns.
D = [?? ?? ??]
Finally, create a 7 by 3 matrix E where the first and last rows are b, the second row is the
transpose of c, with the transpose of A in the remaining rows between. (T = transpose)
E = [??]
[????]
[????]
[??]
3. Create a 6 element row vector r that contains the elements of the second row of D. (Note, do not
use a
Explanation / Answer
%1. Create the 3 row by 4 column matrix A shown below.
A = [ 1 2 3 4; 5 6 7 8 ; 9 10 11 12];
%2. Create a 3 element row vector b with entries -2, ?, and 7/3. Then create a 3 element column vector c with entries 19, 11, and 45.
b = [-2 pi 7/3]; c = [19; 11; 45];
%Using concatenation, create a 3 by 6 matrix D where the first two columns are c, with A (from problem 1) in the last columns.
D = [c c A];
%Finally, create a 7 by 3 matrix E where the first and last rows are b, the second row is the
%transpose of c, with the transpose of A in the remaining rows between. (T = transpose)
E = [b; c'; A'; b];
3. Create a 6 element row vector r that contains the elements of the second row of D. (Note, do not
use a
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.