Prev: Separable (VarPro) Nonlinear Least Squares, LSQCURVEFIT, Jacobians
Next: read a specific interval of signal
From: aaron massuda on 25 Apr 2010 23:05 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 25 Apr 2010 23:25 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 26 Apr 2010 00:31 "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 26 Apr 2010 00:35 "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 26 Apr 2010 03:20 -----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-----
|
Next
|
Last
Pages: 1 2 Prev: Separable (VarPro) Nonlinear Least Squares, LSQCURVEFIT, Jacobians Next: read a specific interval of signal |