![MATLAB: A Practical Introduction to Programming and Problem Solving](https://www.bartleby.com/isbn_cover_images/9780128154793/9780128154793_smallCoverImage.jpg)
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.
![Check Mark](/static/check-mark.png)
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
- 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,Algebra and Trigonometry (MindTap Course List)AlgebraISBN:9781305071742Author:James Stewart, Lothar Redlin, Saleem WatsonPublisher:Cengage LearningCollege AlgebraAlgebraISBN:9781305115545Author:James Stewart, Lothar Redlin, Saleem WatsonPublisher:Cengage Learning
![Text book image](https://www.bartleby.com/isbn_cover_images/9781305658004/9781305658004_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9781337282291/9781337282291_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9781305652231/9781305652231_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9780321964038/9780321964038_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9781305071742/9781305071742_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9781305115545/9781305115545_smallCoverImage.gif)