Creating a sparse vector

2 views (last 30 days)
christina
christina on 8 Aug 2018
Commented: James Tursa on 8 Aug 2018
How do I create a random s-sparse vector of some fixed length?
  1 Comment
James Tursa
James Tursa on 8 Aug 2018
Please describe the randomness, and explain what an "s-sparse" vector is. Maybe give an example.

Sign in to comment.

Answers (0)

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Tags

Products


Release

R2016a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!