To create:
• The variable for the given matrix
• The variable for the given two matrices
• To find whether other multiplication operation can be performed in part 2 or not.
Answer to Problem 45E
Solution:
• The variable for the given matrix
• The variable for the given two matrices
• The variable for the given two matrices
Explanation of Solution
• The variable for the given matrix
The given matrices are,
And,
Substitute
Therefore, the elements of the matrix “3*A” are
Now, verify the expression output through the MATLAB command.
MATLAB Code:
A = [1 4; 3 2]
%Define the command to get the matrix “A”.
3*A
%Define the command to get the output of the expression “3*A”.
Save the MATLAB script with name, chapter2_54793_2_45_1E.m in the current folder. Execute the script by typing the script name at the command window to create the variable for the given matrix
Result:
Therefore, the variable for the given matrix
• The variable for the given two matrices
The given matrices are,
And,
Substitute
Therefore, the elements of the matrix “A*C” are
Now, verify the expression output through the MATLAB command.
MATLAB Code:
A = [1 4; 3 2]
%Define the command to get the matrix “A”.
C = [3 2 5; 4 1 2]
%Define the command to get the matrix “C”.
A*C
%Define the command to get the output of the expression “A*C”.
Save the MATLAB script with name, chapter2_54793_2_45_2E.m in the current folder. Execute the script by typing the script name at the command window to create the variable for the given two matrices
Result:
Therefore, the variable for the given two matrices
• To find whether other multiplication operation can be performed in part 2 or not.
The given matrices are,
And,
Substitute
Therefore, the elements of the matrix “C*B” are
Now, verify the expression output through the MATLAB command.
MATLAB Code:
C = [3 2 5; 4 1 2]
%Define the command to get the matrix “C”.
B = [2 1 3; 1 5 6; 3 6 0]
%Define the command to get the matrix “B”.
C*B
%Define the command to get the output of the expression “C*B”.
Save the MATLAB script with name, chapter2_54793_2_45_3E.m in the current folder. Execute the script by typing the script name at the command window to create the variable for the given two matrices
Result:
Therefore, the variable for the given two matrices
Want to see more full solutions like this?
Chapter 2 Solutions
MATLAB: A Practical Introduction to Programming and Problem Solving
- Solve for x and y in the matrix equation 2AB=I, given A=[1123] and B=[x2y5].arrow_forwardLet X1,X2,X3 and b be the column matrices below. X1=[101], X2=[110], X3=[011] and b=[123] Find constants a, b, c and c such that aX1+bX2+cX3=barrow_forwardIf A and B are matrices with the same dimension and k is a real number, how do you find A+B and kA ?arrow_forward
- Elementary Linear Algebra (MindTap Course List)AlgebraISBN:9781305658004Author:Ron LarsonPublisher:Cengage LearningCollege Algebra (MindTap Course List)AlgebraISBN:9781305652231Author:R. David Gustafson, Jeff HughesPublisher:Cengage Learning
- Calculus For The Life SciencesCalculusISBN:9780321964038Author:GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.Publisher:Pearson Addison Wesley,College AlgebraAlgebraISBN:9781305115545Author:James Stewart, Lothar Redlin, Saleem WatsonPublisher:Cengage LearningAlgebra and Trigonometry (MindTap Course List)AlgebraISBN:9781305071742Author:James Stewart, Lothar Redlin, Saleem WatsonPublisher:Cengage Learning