Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. Index exceeds matrix dimensions.
  2.  
  3. Error in lasso (line 547)
  4. df = df(reverseIndices);
  5.  
  6. Error in my_LASSO (line 8)
  7. B = lasso(X,Y)
  8.  
  9. clear all
  10. X = randn(100,1);
  11. r = [0;2;0;-3;0]; % Only two nonzero coefficients
  12. Y = filter(r,1,X);
  13. Y = Y + randn(100,1)*.1; % Small added noise
  14.  
  15. B = lasso(X,Y)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement