Merge sorted arrays
Version 1.3.0.0 (8,37 ko) par
Bruno Luong
Given two already sorted arrays, the function combines them in an unique sorted array
Using this function avoids to call Matlab SORT(), which does unnecessary work since the two inputs is already sorted.
Mex implementation for speed.
'rows' option supported
Citation pour cette source
Bruno Luong (2025). Merge sorted arrays (https://www.mathworks.com/matlabcentral/fileexchange/28930-merge-sorted-arrays), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Créé avec
R2010b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS LinuxCatégories
En savoir plus sur Matrices and Arrays dans Help Center et MATLAB Answers
Tags
Remerciements
A inspiré : ChooseK
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!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.
MergeSortedArrays/
Version | Publié le | Notes de version | |
---|---|---|---|
1.3.0.0 | Fix bug of merge rows with empty array |
||
1.2.0.0 | Minor speed improvement |
||
1.1.0.0 | Optionally return the splitting locations of the inputs |
||
1.0.0.0 |