Professional Documents
Culture Documents
Matlab Activity 2
Matlab Activity 2
Matlab Activity 2
A=[1,1,1,0,0;1,1,1,0,0;1,0,0,1,0;0,1,0,1,0;0,0,1,1,0]
A=[sym(pi)*ones(1,5);1,1,1,1,1;0,0,0,0,0;1,1,1,1,1]
A=[sqrt(2),sqrt(2),sqrt(2);sqrt(2),sqrt(2),sqrt(2);sqrt(2),sqrt(2),sqrt(2)]
B. In MATLAB enter the following matrices use appropriate format. Write your syntax in the space provided.
MATLAB Syntax
Using MATLAB commands and the Matrices in above compute the following expressions if possible.
Write the MATLAB SYNTAX you used and MATLAB out put on the space provided
1. Product of A and C
>>[A*C]
>>[A+C’]
>>[((A'*6)-(2*C))*B']
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]
Honor Pledge:
“I affirm that I have not given or received any unauthorized
help on this assignment, and that this work is my own.”
SCREENSHOTS: