Engineering Fundamentals: An Introduction to Engineering (MindTap Course List)
Engineering Fundamentals: An Introduction to Engineering (MindTap Course List)
5th Edition
ISBN: 9781305084766
Author: Saeed Moaveni
Publisher: Cengage Learning
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
Calculate steel quantity in kg for CF3, CF4,CF5, CF6 from foundation layout and other footing? The depth of CF3, CF4,CF5 and CF6 are 50, 55,55 , 60 cm in order. Both long and short bar for CF3, CF4,CF5 and CF6 are Y14@15c/c T&B, Y14@15c/c T&B, Y14@15c/c T&B, Y14@12c/c T&B in order. 2. Calculate quantity of flexible sheet from foundation layout?
(A): As shown in the rig. A hydraulic jump was occurred in a rectangular channel,the velocity of flow before and after the jump equal to 8 m/s and 2 m/s respectively. Find: The energy dissipation for the jump (AE) and what is the name of this jump. V1-8 m/s -V2-2 m/s
A cylinder of fluid has dimensions of 0.2 ft in diameter by 0.45 ft high. If the weight of thefluid is 0.55 lb , determine the specific gravity and density of fluid.
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,