Calling R from within Matlab Code
As far as I am aware, there is no package that currently does this. Some people (Friedrich Leisch and others in Vienna) are working on using XML to communicate between the two systems. I am in the process of putting together an R-Octave interface which allows one to call R from Octave. An R-Matlab interface would be relatively easy to construct by adapting the R-Octave code in a few spots. I have looked at embedding R in Matlab over the past few years and it appears that there are enough hooks for this. In principal, all you need to do is create R as a shared library and then dynamically load some code into Matlab that is linked against that and which creates R expressions to be evaluated from Matlab calls. Many of the Omegahat packages do this, so example code is available. I'll hopefully make the R-Octave code available in the next few weeks.
Kamyar Hazaveh Hesarmaskan wrote:
Hi,
Does anyone know how I can call R from within Matlab and return the result
to Matlab?
Thanks,
Kamyar
--
==================================
FROM: Kamyar Hazaveh Hesarmaskan
Ontario, Canada
E-mail: kamyar_hazaveh at ieee.org
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
_______________________________________________________________
Duncan Temple Lang duncan at research.bell-labs.com
Bell Labs, Lucent Technologies office: (908)582-3217
700 Mountain Avenue, Room 2C-259 fax: (908)582-3340
Murray Hill, NJ 07974-2070
http://cm.bell-labs.com/stat/duncan
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._