Guest User

Untitled

a guest
Nov 15th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. B=[1 2 3
  2. 2 2 4
  3. 3 5 8];% matrix with rank<3, here rank(B)=2, thus dim(ker(B'))=1
  4. K=null(B'); % the columns of K are a basis of the Kernel
  5. V=K(:,1); % in fact, in this case, V and K are identical
  6. a=rand(1,3);
  7. A=[a(1)*V,a(2)*V,a(3)*V]';% note the transposition operator
  8. A*B,%test : must be zero
Add Comment
Please, Sign In to add comment