From: Loren Shure on
In article <hr2vtg$gal$1(a)fred.mathworks.com>, massuda18(a)gmail.com
says...
> How can I sort a vector with out using the sort function. Also how can I take the average of the vector entries with out the sum or mean built in functions
>

Ask yourself questions like, how would I describe the relationship
between 2 numbers. Is one less, is one bigger? How do you program that
to start?

--
Loren
http://blogs.mathworks.com/loren
http://matlabwiki.mathworks.com/MATLAB_FAQ