Skip to content

Can R functions be implented in Matlab

4 messages · Madhu Kishore, (Ted Harding), Gabor Grothendieck +1 more

#
On 12-Oct-05 Madhu Kishore wrote:
Some of the simpler R functions could be implemented in MatLab with
equivalent effect; in particular, anything which depends mainly on
straightforward array (especially matrix and vector) calculations
should not be too difficult. You are also likely to find MatLab
functions which implement many of the computations in various
normality tests directly, so you should not need to rewrite these;
just use the MatLab functions.

However, don't even think of emulating anything extensive from R
in MatLab! Not only would you ever finish your studies, you would
probably never finish you R->MatLab project. They are quite
different programming languages, and even something as basic
as getting MatLab to emulate the R command

  summary(lm(y ~ A*B))

would be a major task if undertaken from scratch.

Why not just use one or the other, whichever best suits your
purpose of the moment?

Best wishes,
Ted.


--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding at nessie.mcc.ac.uk>
Fax-to-email: +44 (0)870 094 0861
Date: 12-Oct-05                                       Time: 23:55:45
------------------------------ XFMail ------------------------------
#
The following might help:

http://cran.r-project.org/doc/contrib/R-and-octave-2.txt
On 10/12/05, Madhu Kishore <madhukishore_madhu04 at yahoo.com> wrote:
#
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



And additionally, there is an R-Matlab interface that may work
for you. Currently it only works for Unix.

  http://www.omegahat.org/RMatlab

 D.
Gabor Grothendieck wrote:
- --
Duncan Temple Lang                duncan at wald.ucdavis.edu
Department of Statistics          work:  (530) 752-4782
371 Kerr Hall                     fax:   (530) 752-7099
One Shields Ave.
University of California at Davis
Davis, CA 95616, USA
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDTdrB9p/Jzwa2QP4RAqEMAJ4nY2wbnmmeUcJauJYklMxeGdYGsQCdGl8t
GxyYThnHgflC3GbnBdVYdBE=
=pSzz
-----END PGP SIGNATURE-----