5.0

5.0 | 2 ratings Rate this file 21 downloads (last 30 days) File Size: 27.88 KB File ID: #7937

simsort

by Giampiero Campa

 

28 Jun 2005 (Updated 23 Oct 2007)

Code covered by BSD License  

Sorts vectors using quicksort.

Download Now | Watch this File

File Information
Description

This block sorts the input vector using the quicksort algorithm as described in http://en.wikipedia.org/wiki/Quicksort

Quicksort is the world's most widely used sorting algorithm, and perhaps even the world's most widely used algorithm of any kind.
More info on the mathematical behavior of the algorithm can be found in http://mathworld.wolfram.com/Quicksort.html

Giampy

Required Products Simulink
MATLAB release MATLAB 5.3 (R11)
Zip File Content  
Other Files license.txt,
qsort.c,
qsort.dll,
qsort.mexw32,
simsort.mdl
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
21 Jul 2005 Shijun Diao

great, very useful tool

28 Nov 2005 Karl-Heinz Meitinger

Does what it says, small, simply good!

Please login to add a comment or rating.
Updates
23 Oct 2007

Recompiled the s-funcion with matlab 7.1 so that everything works fine with newer versions requiring the .mexw32 extension. The .dll files are retained to the benefit users working with versions prior to 7.1, other users may delete them.

Tag Activity for this File
Tag Applied By Date/Time
simulink Giampiero Campa 22 Oct 2008 07:51:37
sort Giampiero Campa 22 Oct 2008 07:51:37
qsort Giampiero Campa 22 Oct 2008 07:51:37
quicksort Giampiero Campa 22 Oct 2008 07:51:37
sorting Giampiero Campa 22 Oct 2008 07:51:37
vector Giampiero Campa 22 Oct 2008 07:51:37
hoare Giampiero Campa 22 Oct 2008 07:51:37
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com