1. Write a function that takes two arrays which are already ordered (in ascending order) and creates a new ordered array
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
1. Write a function that takes two arrays which are already ordered (in ascending order) and creates a new ordered array
question!!!!! Example: Input arrays: 1 3 3 4 8 11 y = 2 7 7 15 20 Output array: 1 3 2 3 4 N 8 8 15 20 11 ALSO TEST YOUR FUNCTION WITH THE "Inputs" above the result should be the "Output" above) and take a screenshot of your MATLAB or MATLAB ONLINE screen and include it in
1. Write a function that takes two arrays which are already ordered (in ascending order) and creates a new ordered array by merging these two arrays. Use ONLY queue functions for numeric arrays ("enqueue" or "dequeue") to do this! Note: In your code you are not allowed to use any of the sorting algorithms studied in this class. You will not get any point if you use them for this