Merge sorted arrays
by Bruno Luong
03 Oct 2010
(Updated 31 Oct 2010)
Given two already sorted arrays, the function combines them in an unique sorted array
|
Watch this File
|
| File Information |
| Description |
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 |
| Acknowledgements |
This submission has inspired the following:
ChooseK
|
| MATLAB release |
MATLAB 7.11 (2010b)
|
| Other requirements |
Mex installed |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 04 Oct 2010 |
Optionally return the splitting locations of the inputs |
| 31 Oct 2010 |
Minor speed improvement |
|
Contact us at files@mathworks.com