EP WEBASSIGN FOR MOAVENI'S ENGINEERING
EP WEBASSIGN FOR MOAVENI'S ENGINEERING
6th Edition
ISBN: 9780357126592
Author: MOAVENI
Publisher: CENGAGE CO
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
Please solve the example, explaining the solution steps and writing by hand
Please solve the example, explaining the solution steps and writing by hand
Note: (please show handwritten answers, and no AI usage !) Provide a clear, step-by-step handwritten solution (without any detailed explanations). Ensure the work is simplified and completed manually, adhering to expert-level accuracy. Refer to the provided image for clarity and ensure all calculations are double-checked for correctness before submission. Thank you!.   Question 1:  A cylindrical soil sample is connected to two water reservoirs: a) Determine the pressure, elevation, and total head at a point one meter above the bottom of the sample (point A). b) Calculate the pore pressure and effective stress at point A if the soil has a saturated unit weight of 18.7kN/m^3. c) Determine the water flow rate though the sample if the soil has a coefficient of permeability of 0.19 cm/s and the radius of the sample is 20 mm. d) Is it possible for the soil to reach the “quick condition”(zero effective stress) by raising the level of the water in the upper reservoir? Why or why not?. Question…
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,