find the smallest ten values in a vector
Show older comments
I need to find the smallest ten values in a large vector.
Answers (2)
Walter Roberson
on 31 Jan 2018
mink(YourVector, 10)
See here
Or do,
v=sort(yourVector);
result=v(1:10)
Categories
Find more on Descriptive Statistics 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!