Ahora está siguiendo esta publicación
- Verá actualizaciones en las notificaciones de contenido en seguimiento.
- Podrá recibir correos electrónicos, en función de las preferencias de comunicación que haya establecido.
This submission includes four sorting algorithms and a test demo. The algorithms include, Bubble Sorting Algorithm, Cocktail Sorting Algorithm, Insertion Sort Algorithm, and Odd-Even Sorting Algorithm. These algorithms receive a vector and sort the elements of the vector and return it in an output vector.
For Example for using the bubble sort algorithm, you can do as follows:
>> A = rand(1,100) % a vector including 100 random variables
>> SortedA1 = bubbleSort(A);
To understand the algorithms you can google them and check for instance the upcoming wikipedia pages.
To test all the algorithms at once you can run the demo
>> testSorting
Citar como
Reza Ahmadzadeh (2026). Simple Sorting Methods (https://la.mathworks.com/matlabcentral/fileexchange/52077-simple-sorting-methods), MATLAB Central File Exchange. Recuperado .
Información general
- Versión 1.1.0.0 (30,4 KB)
Compatibilidad con la versión de MATLAB
- Compatible con cualquier versión
Compatibilidad con las plataformas
- Windows
- macOS
- Linux
