solution6 - % Assignment #6 % prob 1 A=[3 2 5;7 1 6;7 3 7];...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: % Assignment #6 % prob 1 A=[3 2 5;7 1 6;7 3 7]; B=[5 2 9;6 8 4;6 3 1]; disp('det(A)') det(A) disp('det(B)') det(B) disp('inv(A)') inv(A) disp('inv(B)') inv(B) Anew=[3 2 5;7 1 6;10 3 11]; disp('det(Anew)') det(Anew) disp('inv(Anew') inv(Anew) det(A) ans = 23 det(B) ans = -254 inv(A) ans = -0.4783 0.0435 0.3043 -0.3043 -0.6087 0.7391 0.6087 0.2174 -0.4783 inv(B) ans = 0.0157 -0.0984 0.2520 -0.0709 0.1929 -0.1339 0.1181 0.0118 -0.1102 det(Anew) ans = 0 inv(Anew Warning: Matrix is close to singular or badly scaled. Results may be inaccurate. RCOND = 1.316376e-017. ans = 1.0e+015 * 0.6906 0.6906 -0.6906 1.6772 1.6772 -1.6772 -1.0852 -1.0852 1.0852 The determinate of the altered matrix A (called Anew) is zero because the third row is not independent of the first two rows. In fact, the third row is the sum of the first two rows. Whenever all of the rows of a matrix are not independent, the determinant of that matrix is zero. Such a matrix is called a singular matrix. The fact that the matrix Anew is is zero....
View Full Document

This note was uploaded on 02/27/2010 for the course ENME 271 taught by Professor Marks during the Summer '08 term at Maryland.

Page1 / 4

solution6 - % Assignment #6 % prob 1 A=[3 2 5;7 1 6;7 3 7];...

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