Why spend an hour when one formula can do it in seconds?
The MATLAB programming language offers predefined functions for merging sets of data into a new set or array. With a few lines of simple code, you can merge sets of data into a sorted array or matrix.