Matlab Sec4.3

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

Info iconThis 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
Background image of page 1

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

View Full DocumentRight 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.
Background 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

This note was uploaded on 04/27/2011 for the course MATH 265 taught by Professor Rounds during the Spring '11 term at Purdue.

Page1 / 2

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

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online