This preview shows page 1. Sign up to view the full content.
Unformatted text preview: out = ; %terminating condition; sets the output equal to an empty vector if vec %is an empty vector else [num ind] = min(vec); out = [min(vec) slowSort(vec(min(vec)~=vec))]; %concatenates the minimum with the recursive function to continue to %keep increasing the order end end...
View Full Document
This note was uploaded on 10/21/2010 for the course CS 1371 taught by Professor Stallworth during the Spring '08 term at Georgia Institute of Technology.
- Spring '08