Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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 M

Explanation / 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

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote