MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayNew to MATLAB?
MATLAB Central > MATLAB Newsreader > calling R code from MATLAB 

Subject: calling R code from MATLAB From: Lourdes Pelayo Date: 13 Feb, 2008 20:39:04 Message: 1 of 8 
Hello 
On 20080213 15:39:04 0500, "Lourdes Pelayo" <loperam@yahoo.com> said: 
On Feb 13, 1:56 pm, Arthur G <gorramfreak+n...@gmail.com> wrote: 
Subject: calling R code from MATLAB From: Lourdes Pelayo Date: 16 Feb, 2008 04:22:02 Message: 4 of 8 

On 20080215 23:22:02 0500, "Lourdes Pelayo" <loperam@yahoo.com> said: 

In response to the above, Arthur passed on the following to me via email (and encouraged me to post it here for others). Note that calc.R is your Rsource file that has the info that you want to process. In the example below we are running a shapirowilkes test on the data obtained in matlab 
After using R(D)COM and Matlab Rlink for a while, I do not recommend it. The COM interface has trouble parsing many commands and it is difficult to debug the code. I recommend using a system command from Matlab as described in the R Wiki. This also avoids having to install RAndFriends. 
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.