Professional Documents
Culture Documents
Section: ME12S2
B. In MATLAB enter the following matrices use appropriate format. Write your syntax
in the space provided.
MATLAB Syntax
1. Product of A and C
>> A*C
ans =
9/2 9/4 15/4
19/12 11/12 3/2
>> A+C'
ans =
5 3/2
19/12 9/4
49/20 19/6
>> 6*(A'-2*C*B')
Error using *
Incorrect dimensions for matrix multiplication. Check that the number of
columns in the first matrix matches the number of rows in the second matrix. To
perform elementwise multiplication, use '.*'.
4. Sum of the product of A and its transpose and the product of C and its
transpose.
>> A*A'+C*C'
5. Product of A and B
>> A*B
Error using *
Incorrect dimensions for matrix multiplication. Check that the number of columns in
the first matrix matches the number of rows in the second matrix. To perform
elementwise multiplication, use '.*'.
Honor Pledge for Graded Assignments
“I affirm that I shall not give or receive any unauthorized help on this
assignment and that all work is my own.”