ENGINEERING FUNDAMENTALS
ENGINEERING FUNDAMENTALS
6th Edition
ISBN: 9781337705011
Author: MOAVENI
Publisher: CENGAGE L
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
If 4x + 6 = 5(2x), what is x?
3*40 * 2 0.5 Ž=8.901 (2.25 +X What are the steps for solving the following equation?
Use Secant Method to find the root of the equation below correct to 8 decimal places, by tabulating the computed values. 1. f(x) = x + e^x
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