{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

HW_6_SolutionGuide

# HW_6_SolutionGuide - ECE280 Fall 2009 F Salem HW#6Solution...

This preview shows pages 1–4. Sign up to view the full content.

ECE280 Fall 2009 F. Salem HW#6—Solution Guide—using diary on command in MATLAB %Given X1=[1 2 3]' X1 = 1 2 3 X2=[4 5 6]' X2 = 4 5 6 X3=[7 8 9]' X3 = 7 8 9 X4=[7 8 10]' X4 = 7 8 10

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

View Full Document
% and given the matrices B=[X1 X2 X4] B = 1 4 7 2 5 8 3 6 10 L=diag([11, 12, 13]) L = 11 0 0 0 12 0 0 0 13 A=B*L*inv(B) A = 19.6667 -13.3333 6.0000 9.3333 -2.6667 6.0000 12.0000 -18.0000 19.0000 %Problem 1, solution. Check if X1, X2, X3 are linearly %independent. %To do so, we form the matrix, say, F=[X1 X2 X3] and check %if its rank equals to 3 (the number of vectors). Only if %the rank equals to the number of vectors would the set of %vectors X1, X2, and X3 be linearly independent. F=[X1 X2 X3] F = 1 4 7 2 5 8 3 6 9 rank(F) ans = 2 %rank (F)=2 less than 3 (the number of vectors). Then, the %vectors X1, X2, and X3 are NOT linearly independent.
%Problem 2- solution: Select 3 vectors and check the rank %of matrix formed from them. %When the rank of the matrix equals to 3 the set of 3 vectors are linearly independent. %Thus, we proceed as follows: F1=[X1 X2 X4] F1 = 1 4 7 2 5 8 3 6 10 rank(F1) ans = 3 % Therefore, the vectors X1, X2, and X4 are linearly %independent. You may get other set of vectors.

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 12

HW_6_SolutionGuide - ECE280 Fall 2009 F Salem HW#6Solution...

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

View Full Document
Ask a homework question - tutors are online