Question
Book Icon
Chapter 15, Problem 19P

(a)

To determine

Find the addition of matrix [A]and[B] using MATLAB.

(a)

Expert Solution
Check Mark

Explanation of Solution

Given data:

The matrices [A], [B], and [C] are,

[A]=[421707153]

[B]=[121533457]

[C]=[124]

Calculation:

The steps to add the matrix [A]and[B] using MATLAB are as follows:

  • Input the matrix [A]and[B].
  • Using the code “[A]+[B]” add the matrix.
  • Print the addition of matrix [A]and[B].

In the command window of the MATLAB type the code as follows:

A=[4 2 1;7 0 -7;1 -5 3];

B=[1 2 -1;5 3 3;4 5 -7];

C=[1;-2;4];

add=A+B;

disp(add);

The output will be displayed as follows:

     5     4     0

    12     3    -4

     5     0    -4

Conclusion:

Thus, the addition of matrix [A]and[B] is performed using MATLAB.

(b)

To determine

Find the subtraction of matrix [A]and[B] using MATLAB.

(b)

Expert Solution
Check Mark

Explanation of Solution

Given data:

The matrices [A], [B], and [C] are,

A=[421707153]

B=[121533457]

C=[124]

Calculation:

The steps to subtract the matrix [A]and[B] using MATLAB are as follows:

  • Input the matrix [A]and[B].
  • Using the code “[A][B]” sub the matrix.
  • Print the subtraction of matrix [A]and[B].

In the command window of the MATLAB type the code as follows:

A=[4 2 1;7 0 -7;1 -5 3];

B=[1 2 -1;5 3 3;4 5 -7];

C=[1;-2;4];

sub=A-B;

disp(sub);

The output will be displayed as follows:

     3     0     2

     2    -3   -10

    -3   -10    10

Conclusion:

Thus, the subtraction of matrix [A]and[B] is performed using MATLAB.

(c)

To determine

Find the value of 3[A] using MATLAB.

(c)

Expert Solution
Check Mark

Explanation of Solution

Given data:

The matrices [A], [B], and [C] are,

A=[421707153]

B=[121533457]

C=[124]

Calculation:

The steps to find the 3 times of matrix [A] using MATLAB are as follows:

  • Input the matrix [A].
  • Using the code “3*[A]” find the value of 3 times the matrix.
  • Print the 3 times of matrix [A].

In the command window of the MATLAB type the code as follows:

A=[4 2 1;7 0 -7;1 -5 3];

X=3*A;

% where X is the resultant matrix.

disp(X);

The output will be displayed as follows:

    12     6     3

    21     0   -21

     3   -15     9

Conclusion:

Thus, the value of 3[A] is performed using MATLAB.

(d)

To determine

Find the multiplication of matrix [A]and[B] using MATLAB.

(d)

Expert Solution
Check Mark

Explanation of Solution

Given data:

The matrices [A], [B], and [C] are,

A=[421707153]

B=[121533457]

C=[124]

Calculation:

The steps to multiply the matrix AandB using MATLAB are as follows:

  • Input the matrix [A]and[B].
  • Using the code “[A]*[B]” multiply the matrix.
  • Print the multiplication of matrix [A]and[B].

In the command window of the MATLAB type the code as follows:

A=[4 2 1;7 0 -7;1 -5 3];

B=[1 2 -1;5 3 3;4 5 -7];

C=[1;-2;4];

Mul=A*B;

disp(Mul);

The output will be displayed as follows:

    18    19    -5

   -21   -21    42

   -12     2   -37

Conclusion:

Therefore, the multiplication of matrix [A]and[B] is performed using MATLAB.

(e)

To determine

Find the multiplication of matrix [A]and[C] using MATLAB.

(e)

Expert Solution
Check Mark

Explanation of Solution

Given data:

The matrices [A], [B], and [C] are,

A=[421707153]

B=[121533457]

C=[124]

Calculation:

The steps to multiply the matrix [A]and[C] using MATLAB are as follows:

  • Input the matrix [A]and[C].
  • Using the code “[A]*[C]” multiply the matrix.
  • Print the multiplication of matrix [A]and[C].

In the command window of the MATLAB type the code as follows:

A=[4 2 1;7 0 -7;1 -5 3];

B=[1 2 -1;5 3 3;4 5 -7];

C=[1;-2;4];

Mul=A*C;

disp(Mul);

The output will be displayed as follows:

     4

   -21

    23

Conclusion:

Therefore, the multiplication of matrix [A]and[C] is performed using MATLAB.

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
= The allowable working load on a prestressed concrete pile 21-m long that has been driven 356 mm (see Table 9.3a). into sand is 502 kN. The pile is octagonal in shape with D Skin resistance carries 350 kN of the allowable load, and point bearing carries the rest. Use E, = 21 x 10° kN/m², E, = 25 x 103 kN/m², p, 0.35, and = 0.62. Determine the settlement of the pile. ==
H.W.5: A beam section is limited to a width of 300 mm, and total depth h=500 mm, and has to resist a factored moment 405 kN.m.Calculate the required reinforcement, given f'c=28 MPa, fy=420 MPa. (As=6425mm, As'=2425 mm Ans)
H.W.1: A rectangular beam has a width of 300 mm, and effective depth d=570 mm to centroid of tension steel bars. Tension steel reinforcement consist of 6628mm in two rows, compression reinforcement of 2022mm. Calculate the design moment strength of the beam, where f'c=28 MPa, fy=420 MPa. (Mu=822 kN.m Ans)
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Engineering Fundamentals: An Introduction to Engi...
Civil Engineering
ISBN:9781305084766
Author:Saeed Moaveni
Publisher:Cengage Learning
Text book image
Fundamentals Of Construction Estimating
Civil Engineering
ISBN:9781337399395
Author:Pratt, David J.
Publisher:Cengage,