Vous suivez désormais cette soumission
- Les mises à jour seront visibles dans votre flux de contenu suivi
- Selon vos préférences en matière de communication il est possible que vous receviez des e-mails
This is a search algorithm but what makes it different is that it checks if the data you are looking for in the data matrix. if it is, it returns the position of it and the value at that position. if what you are searching for is not in the data matrix, the algorithm will return the closest value to what you are searching and return the value and its position inside the matrix
ex:
>>findNearest([1 2 3 4 5],3.6)
ans =
Nearest Value = 4
Position = 4
Acknowledgement:
MIT opencourseware homework assignment but no code was given just the idea.
Citation pour cette source
Alexander Wallar (2026). findNearest algorithm (https://fr.mathworks.com/matlabcentral/fileexchange/30029-findnearest-algorithm), MATLAB Central File Exchange. Extrait(e) le .
Catégories
En savoir plus sur Statistics and Machine Learning Toolbox dans Help Center et MATLAB Answers
Informations générales
- Version 1.7.0.0 (1,35 ko)
Compatibilité avec les versions de MATLAB
- Compatible avec toutes les versions
Plateformes compatibles
- Windows
- macOS
- Linux
| Version | Publié le | Notes de version | Action |
|---|---|---|---|
| 1.7.0.0 | more improvements |
||
| 1.1.0.0 | ALL THE IMPROVEMENTS EVERYBODY WANTS |
||
| 1.0.0.0 |
