Matlab Sec4.3 - Results may be inaccurate RCOND =...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 EDU>> %4.3 EDU>> %1.) EDU>> A1=[1 1 0 2 0 1 1 0 1] A1 = 1 1 0 2 0 1 1 0 1 EDU>> rref([Al eye(size(A1))]) ??? Undefined function or variable 'Al'. EDU>> rref([A1 eye(size(A1))]) ans = 1 0 0 0 1 -1 0 1 0 1 -1 1 0 0 1 0 -1 2 EDU>> A2=[1 1 0 0 1 1 1 0 1] A2 = 1 1 0 0 1 1 1 0 1 EDU>> rref([A2 eye(size(A2))]) ans = 1.0000 0 0 0.5000 -0.5000 0.5000 0 1.0000 0 0.5000 0.5000 -0.5000 0 0 1.0000 -0.5000 0.5000 0.5000 EDU>> %3.) EDU>> help inv INV Matrix inverse. INV(X) is the inverse of the square matrix X. A warning message is printed if X is badly scaled or nearly singular. See also slash, pinv, cond, condest, lsqnonneg, lscov. Overloaded methods: lti/inv Reference page in Help browser doc inv
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Sheet1 Page 2 EDU>> %a) Non singular EDU>> A=[1 2 3 4 5 6 7 8 9] EDU>> inv(A) Warning: Matrix is close to singular or badly scaled.
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Results may be inaccurate. RCOND = 1.541976e-018. ans = 1.0e+016 *-0.4504 0.9007 -0.4504 0.9007 -1.8014 0.9007-0.4504 0.9007 -0.4504 EDU>> %b.) Non-singular EDU>> B=[1 2 3 4 5 6 7 8 0] EDU>> inv(B) ans =-1.7778 0.8889 -0.1111 1.5556 -0.7778 0.2222-0.1111 0.2222 -0.1111 EDU>> %c.) Non-singular EDU>> C=[1 2 3 0 4 5 0 6 7 0 8 9 0 10 11 12] EDU>> inv(C) ans = 0.2000 0.1067 0.0533 -0.0933 0.1818 0.1030 -0.0848 0.0121 0.1455 -0.1042 0.0388 0.0230-0.2848 0.0097 0.0352 0.0521 EDU>> %d)Singular EDU>> D=[1 2 3 0 4 5 0 6 7 0 8 9 1 2 3 0] EDU>> inv(D) Warning: Matrix is singular to working precision. ans = Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf...
View Full Document

{[ snackBarMessage ]}

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