Function sparse for LASSO
2 views (last 30 days)
Show older comments
A set C is given to be a cone of functions
that are negative for
and positive for
Please how do I constrruct $K$-sparsed vector
generated randomly from $C$? Specifying the values of K to be 20,30,50.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1139005/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1139010/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1139015/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1139020/image.png)
0 Comments
Answers (0)
See Also
Categories
Find more on Sparse Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!