MATLAB® / R Reference, by David Hiebeler
Here is the current version of my MATLAB / R Reference in PDF form (last updated November 24, 2009). I wrote the bulk of this during Spring 2007, as I learned R while teaching my Modeling and Simulation course (I'd previously used only MATLAB for prior versions of the course). I have since continued to add to it. The reference is ideally suited for someone who is good in one package, and is trying to learn the other. It may also be useful as a reference (not a tutorial) for someone learning one of the packages, even with no experience in the other.
Previous versions of the reference mentioned the following short MATLAB functions I wrote, although I believe things are re-written now to no longer need them. Still, they're here just in case:
- bins.m, for binning data in various ways.
- listvals.m, which lists the unique values in a vector or matrix, along with the number of times each value appears.
Change log
Here is a record of the various changes made to the document over time.