Advertisement
Guest User

Untitled

a guest
Dec 12th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. x = linspace(0,1,1001);
  2.  
  3. for i=1:10000
  4. a = 1 + 0.1*randn();
  5. b = 1 + 0.1*randn();
  6. c = 1 + 0.1*randn();
  7. y = (a+b.*x+c.*x.^2)';
  8. A = [x.^0; x; x.^2]';
  9. lse(i,:) = A \ y;
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement