Finds the k-th smallest from a list of n numbers. Based on Hoare's Quickselect algorithm with the median of three pivot strategy.
See https://en.wikipedia.org/wiki/Quickselect for details.
The k-th *largest* element can be found by passing n+1-k
Citation pour cette source
Manolis Lourakis (2026). qselect (https://fr.mathworks.com/matlabcentral/fileexchange/68947-qselect), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Créé avec
R2013a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS LinuxCatégories
En savoir plus sur Random Number Generation dans Help Center et MATLAB Answers
Tags
Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
| Version | Publié le | Notes de version | |
|---|---|---|---|
| 1.0.0 |
