pborawski

apro

Apr 25th, 2012
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.18 KB | None | 0 0
  1. clear all
  2. X = [ 1 2 3 4 ];
  3. Y = [ 1 1 3 6 ];
  4.  
  5. for i = 1:4
  6.     for j = 1:3
  7.         A(i,j) = X(i) ^ (j-1);
  8.     end
  9. end
  10.  
  11. disp(A);
  12.  
  13.  
  14. %M = A' * A
  15. %b = A' * Y'
  16.  
  17. %L = M / b'
Advertisement
Add Comment
Please, Sign In to add comment