rotCeva - decrease=fliplr(increase); %this will place the...

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

View Full Document Right Arrow Icon
function vector_same_forwards_backwards=rotCeva(vector) %function to take all numbers smaller than 100 and sort them, place 100 in %the middle of the two mirrored halves %usage: vector_same_forwards_backwards=rotCeva(vector) vector1=vector(vector<100); increase=sort(vector1); %this will place the vector in increasing order
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: decrease=fliplr(increase); %this will place the increase variable in decreasing order vector_same_forwards_backwards=[increase,100,decrease]; %the vector will begin with the increase vector, then in the middle will be %the value 100, and the...
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.

Ask a homework question - tutors are online