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

Create the following matrices in MATLAB: A= [15 322; 3 85; 14 3 82] B=[1 5 6]\'

ID: 1715926 • Letter: C

Question

Create the following matrices in MATLAB: A= [15 322; 3 85; 14 3 82] B=[1 5 6]' C = [12 18 52] Create a matrix called D from the third column of matrix A. Display the result. Combine matrix B and matrix D to create matrix E, a two-dimensional matrix with three rows and two columns. Display the result. Combine matrix B and matrix D to create matrix F, a one-dimensional matrix with six rows and one column. Display the result. Create a matrix G from matrix A and the first three elements of matrix C, with four rows and three columns. Display the result. Create matrix H with the first element equal to A1,3, the second element equal to C1, 2, and the third element equal to B2,1. Display the result.

Explanation / Answer

>> A=[15 3 22;3 8 5; 14 3 82];
>> B=[1 5 6];
>> C=[12 18 52];
>> D=[A(7);A(8);A(9)]

D =

    22
     5
    82

>> E=[[B(1);B(2);B(3)] [D(1);D(2);D(3)]]

E =

     1    22
     5     5
     6    82

>> F=[B(1);B(2);B(3);D(1);D(2);D(3)]

F =

     1
     5
     6
    22
     5
    82

>> G=[15 3 22;3 8 5; 14 3 82; C(1) C(2) C(3)]

G =

    15     3    22
     3     8     5
    14     3    82
    12    18    52

>>

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