Embed presentation
Download to read offline



This document provides functions for calling the statistical package R from within MATLAB. It includes functions to open a connection to an R server process (openR), run R commands from MATLAB (evalR), copy data from MATLAB to an R variable (putRdata), copy data from an R variable to MATLAB (getRdata), and close the connection to the R server process (closeR). It also includes an example (Rdemo.m) that demonstrates connecting MATLAB to an R session, pushing data into R, running simple R commands, and retrieving the results back into MATLAB before closing the connection.

