MAT 343 MATLAB 1 - MAT 343 MATLAB 1 Robby Dermawan Sendjaja 1 A = 2 6 3 9 B = 1 2 3 4 C =-5 5 5 3

# MAT 343 MATLAB 1 - MAT 343 MATLAB 1 Robby Dermawan Sendjaja...

• Lab Report
• 3
• 89% (9) 8 out of 9 people found this document helpful

This preview shows page 1 out of 3 pages. Unformatted text preview: MAT 343 MATLAB 1 Robby Dermawan Sendjaja 1) A = 2 6 3 9 B = 1 2 3 4 C = -­‐5 5 5 3 2A) A+B,B+A ans = 3 8 6 13 ans = 3 8 6 13 Yes, This matrix is addition commutative Yes, the results are the same 2B) (A+B)+C,A+(B+C) ans = -­‐2 13 11 16 ans = -­‐2 13 11 16 Yes, This matrix is addition associative Yes, the results are the same 2C) 5*(A+B), 5*A + 5*B ans = 15 40 30 65 ans = 15 40 30 65 Yes, this is a multiplication with scalar distributive Yes, the results are the same 2D) A*(B+C), A*B+A*C ans = 40 56 60 84 ans = 40 56 60 84 Yes, this is a multiplication with matrix distributive Yes, the results are the same 2E i) B = C A*B , A*C ans = 20 28 30 42 ans = 20 28 30 42 Yes, it is true. ii) A*B, B*A ans = 20 28 30 42 ans = 8 24 18 54 Yes, the results are different 3) M = zeros(2,3) M = 0 0 0 0 0 0 N = 5 * eye (3,3) N = 5 0 0 0 5 0 0 0 5 P = 3 * ones(2,2) P = 3 3 3 3 Q = triu(ones(3,3),0) ans = 1 1 1 0 1 1 0 0 1 ...
View Full Document

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask 0 bonus questions You can ask 0 questions (0 expire soon) You can ask 0 questions (will expire )
Answers in as fast as 15 minutes