Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index exceeds matrix dimensions.
- Error in lasso (line 547)
- df = df(reverseIndices);
- Error in my_LASSO (line 8)
- B = lasso(X,Y)
- clear all
- X = randn(100,1);
- r = [0;2;0;-3;0]; % Only two nonzero coefficients
- Y = filter(r,1,X);
- Y = Y + randn(100,1)*.1; % Small added noise
- B = lasso(X,Y)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement