Merge sort algorithm

Version (1.8 KB) by ACLNM
This function executes what I think is the merge sort algorithm invented by John von Neumann in 1945


Updated 4 Feb 2013

View License

The function should be used like this:
sorted = fusioned( somevector )

Also contains a script that runs the algorithm N times and compares it with the function SORT from Matlab. It expresses how many times it was successful and how long it took.

As far as I know, the function is completely functional.
Tell me if you noticed otherwise. Send the vector that can produce an error.

@ ACx // February 2013

Cite As

ACLNM (2023). Merge sort algorithm (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Shifting and Sorting Matrices in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes