Merge sorted arrays

版本 1.3.0.0 (8.4 KB) 作者: Bruno Luong
Given two already sorted arrays, the function combines them in an unique sorted array
1.3K 次下载
更新时间 2013/11/4

查看许可证

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 (2024). Merge sorted arrays (https://www.mathworks.com/matlabcentral/fileexchange/28930-merge-sorted-arrays), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2010b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Matrices and Arrays 的更多信息
致谢

启发作品: ChooseK

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
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