37. Create the following matrix M. 13 19 21 23 7 25 27 29 1s 21 By writing one c
ID: 3144564 • Letter: 3
Question
37. Create the following matrix M. 13 19 21 23 7 25 27 29 1s 21 By writing one command and using the colon to address range of elements (do not type individual elements explicitly), use the matrix M to: (a) Create a five-element row vector named Va that contains the elements of the third row of M. ments of the fourth column of M. ments of the second row of M followed by the elements of the third col- (b) Create a three-element column vector named Vb that contains the ele- (c) Create an eight-element row vector named Vc that contains the ele- umn of MExplanation / Answer
M = [ 1 7 13 19 25 ; 3 9 15 21 27 ; 5 11 17 23 29];
>> M
M =
1 7 13 19 25
3 9 15 21 27
5 11 17 23 29
>> Va =M(3,:)
Va =
5 11 17 23 29
>> Vb = M(:,4)
Vb =
19
21
23
Vc = [M(2,:) M(:,3)']
Vc =
3 9 15 21 27 13 15 17
Please rate my answer
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.