MAT 350 2.3 MATLAB: Matrix Operations & Calculations
In this activity you will utilize MATLAB to evaluate sums, differences, scalar products, and products of matrices.
Create the matrices A and B.
A = [2 1; 0 -4]
B = [1 -1; 3 2]
WARNING: Matrix operations are only possible on matrices of the appropriate sizes.
Find the sum of A and B.
A + B
Find the difference of A and B.
A – B
Find the scalar product of 2 times A.
2*A
Find the product of A and B.
A*B
Use the following matrices for this activity.
A = 1 2 0 B = -2 0 3 C = 3 1
-1 -2 -3 1 3 1 2 -1
0 1 -1 -1 0
Script:
Create the matrices A, B, and C.
A = [ 1 2 0; -1 -2 3]
B = [ -2 0 3; 1 3 1; 0 1 -1]
C = [ 3
Reviews
There are no reviews yet.