LAB1FINALMAT343_913.pdf - Jesse Kinkead 1208865485 Questions 1 Matrix Algebra A=-2-5-3;5 4-1-2 B=.3 1.9.8;3.7.7-1-5 3.1;3.8.2.9 A =-2 5-2-5 4-1-3-1-5 B

LAB1FINALMAT343_913.pdf - Jesse Kinkead 1208865485...

This preview shows page 1 - 3 out of 12 pages.

Jesse Kinkead 1208865485 % Questions 1 Matrix Algebra A=[-2 -5 -3;5 4 -1;-2 -1 -5] A = -2 -5 -3 5 4 -1 -2 -1 -5 B=[-.3 1.9 .8;3.7 -.7 3.1;3.8 .2 -.9] B = -0.3000 1.9000 0.8000 3.7000 -0.7000 3.1000 3.8000 0.2000 -0.9000 C=[2 2 1;3 -1 -3] C = 2 2 1 3 -1 -3 1.3+C ans = 5 5 4 6 2 0 2.4*A+4*B ans = -9.2000 -12.4000 -8.8000 34.8000 13.2000 8.4000 7.2000 -3.2000 -23.6000 3.A+B ans = -2.3000 -3.1000 -2.2000 8.7000 3.3000 2.1000 1.8000 -0.8000 -5.9000 4.C*A ans = 4 -3 -13 -5 -16 7 5.4*(A+B) ans = -9.2000 -12.4000 -8.8000 34.8000 13.2000 8.4000 7.2000 -3.2000 -23.6000 6.A*C
Image of page 1

Subscribe to view the full document.

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 '.*'. 7.B+A ans = -2.3000 -3.1000 -2.2000 8.7000 3.3000 2.1000 1.8000 -0.8000 -5.9000 8.B*A ans = 8.5000 8.3000 -5.0000 -17.1000 -24.4000 -25.9000 -4.8000 -17.3000 -7.1000 9.A+C Matrix dimensions must agree. 10.A*B ans = -29.3000 -0.9000 -14.4000 9.5000 6.5000 17.3000 -22.1000 -4.1000 -0.2000 a) Yes ,there were a few computations not able to be performed : Matrix product A*C was not able to be performed because A*C did not have the correct dimensions the rows or columns did not match. It also explained how to do multiplication elementwise. The Matrix sum of A+C was also unable to be performed due to mismatched dimensions. b) Yes, they are definitely equal due to the commutative property of matrices. c)No, A*B does not equal B*A because the order matters.
Image of page 2
Image of page 3
  • Fall '08
  • ringhofer
  • Matrix G, Jesse Kinkead

What students are saying

  • Left Quote Icon

    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.

    Student Picture

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

  • Left Quote Icon

    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.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    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.

    Student Picture

    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