sorting_prob_mnaik - % % % OUTPUTS: List them below line...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function sorted_vector = sorting_prob_mnaik(vector_input) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Programmer(s) and Purdue Email Address(es): % 1. login@purdue.edu % % Section #: % % Assignment #: % % Academic Integrity Statement: % % I/We have not used source code obtained from % any other unauthorized source, either modified % or unmodified. Neither have I/we provided access % to my/our code to another. The project I/we am/are % submitting is my/our own original work. % % FUNCTION NAME: Very brief purpose of function on this line % INPUTS: List them below one line per input argument
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: % % % OUTPUTS: List them below line per output argument % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% outer_counter = 1; inner_counter = 1; end_point = length(vector_input); temp_variable = 0; while outer_counter = <= end_point while inner_counter <= endpoint-1 if vector_input(inner_counter)>vector_input(counter+1); temp_variable = vector_input(counter+1); vector_input(counter+1) = vector_input(counter) vector_input(inner_counter) = temp_variable( end inner_counter = inner_counter+1; end outer_counter - outer_counter+1; end...
View Full Document

This note was uploaded on 02/20/2012 for the course ENGR 195 taught by Professor Staff during the Spring '08 term at Purdue University-West Lafayette.

Ask a homework question - tutors are online