Merge sorted arrays

バージョン 1.3.0.0 (8.37 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 Center および MATLAB AnswersMatrices 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