BME 2013 Spring 2016 7. Create the following matrices 10 25 M 2 5 8 and N 15 30
ID: 3664681 • Letter: B
Question
BME 2013 Spring 2016 7. Create the following matrices 10 25 M 2 5 8 and N 15 30 3 6 9 20 35 Use the matrices to: a? Create on matrix MN by appending matrix N to the end of matrix M.Displav matrix MN. contains the elements b create a five-element column vector named MNb that in the first row of MN. Display vector MNb. c. Create a three-element row vector named MNc that contains the elements of a the third column of MN. Display vector MNc. that contains the elements of d. create an eight-element row vector named MNd the second row of MN and fourth column of A. Display vector MNd. the 8. ven are a 5x6 matrix A, a 3x6 matrix B, and a 9 element long vector v, 1 6 11 16 21 26 2 7 12 17 22 27 3 8 13 18 23 28 4 9 14 19 24 29 5 10 15 20 25 30 5 10 15 20 25 30 30 35 40 45 50 55 55 60 65 70 75 80 199 98 97 96 95 94 93 92 911 Create the arrays, and then, by writing one command, replace (a) the last three A with the first four columns of the first four columns of the 2nd and 4th rows of Page 2 of 3 M. GerschutzExplanation / Answer
Matlab code:
7)
M=[[1 4 7];[2 5 8];[3 6 9]];
N=[[10 25];[15 30];[20 35]];
MN=horzcat(M,N);
MNb=(MN(1,:)).' ;
MNc=(MN(:,3)).';
in d "A" is not defined.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.