From: aaron massuda on
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
From: TideMan on
On Apr 26, 3:05 pm, "aaron massuda" <massud...(a)gmail.com> wrote:
> 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

Another bloody homework cheat.
From: Steven Lord on

"aaron massuda" <massuda18(a)gmail.com> wrote in message
news:hr2vtg$gal$1(a)fred.mathworks.com...
> 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

Write your own SORT/SUM/MEAN functions and use those instead of the built-in
versions? The algorithms for doing so, at least very basic ones, are fairly
easy to find.

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ


From: us on
"aaron massuda" <massuda18(a)gmail.com> wrote in message <hr2vtg$gal$1(a)fred.mathworks.com>...
> 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

....by THINKING...

us
From: Merciadri Luca on
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

"aaron massuda" <massuda18(a)gmail.com> writes:

> 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
You'd better study and learn your course before asking such
questions. There are many algorithms which aim at sorting
elements. Everything depends on the number of elements, and the time
you have. For the rest, please work!

- --
Merciadri Luca
See http://www.student.montefiore.ulg.ac.be/~merciadri/
- --

One man's meat is another man's poison.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iEYEARECAAYFAkvVPswACgkQM0LLzLt8MhzgYACggKRovIoMDq5HwxaR5D9wmgkh
fLgAoIczdI/uUbejTOn4xUYeCumkFXa5
=YO+q
-----END PGP SIGNATURE-----