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
Bruno Luong (2022). Merge sorted arrays (https://www.mathworks.com/matlabcentral/fileexchange/28930-merge-sorted-arrays), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!