Simple Sorting Methods

This submission includes four sorting algorithms and a test demo.

現在この提出コンテンツをフォロー中です。

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

引用

Reza Ahmadzadeh (2026). Simple Sorting Methods (https://jp.mathworks.com/matlabcentral/fileexchange/52077-simple-sorting-methods), MATLAB Central File Exchange. に取得済み.

カテゴリ

Help Center および MATLAB AnswersShifting and Sorting Matrices についてさらに検索

一般的な情報

MATLAB リリースの互換性

  • すべてのリリースと互換性あり

プラットフォームの互換性

  • Windows
  • macOS
  • Linux
バージョン 公開済み リリース ノート Action
1.1.0.0

Added a new sort algorithm

1.0.0.0

Added a snapshot