mergeΒΆ
merge merges two sorted vectors and returns a single sorted vector.
- rvMerge = merge(rvA, rvB)
Return Value
rvMerge is a sorted vector that contains all elements of rvA and rvB.
Parameters
- rvA
rvA is a real column or row vector.
- rvB
rvB is a real column or row vector.
Example
* a = [1,2,4,5,5,6]
* b = [1,3,7]
* merge(a, b)
1, 1, 2, 3, 4, 5, 5, 6, 7
History
Version |
Description |
---|---|
R2013.2 |
Documentation corrected. |
3.0 |
New. |
See also
id-73279