Essential Comparisons of the Matlab and R Languages

  • J.O Ramsay
  • Giles Hooker
  • Spencer Graves
Part of the Use R book series (USE R)


We assume a working knowledge of either Matlab or R. For either language, there are many books that describe the basics for beginners. However, a brief comparison of the two languages might help someone familiar with one language read code written in the other.

Matlab and R have many features in common. Some of the differences are trivial while others can be troublesome. Where differences are minor, we offer code in only one language, which will be often R.

We will use typewriter font for any text meant to be interpreted as Matlab or R code, such as plot(heightfd).


Undesired Output Character String Functional Data Analysis Double Object List Object 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer-Verlag New York 2009

Authors and Affiliations

  1. 1.OttawaCanada
  2. 2.Department of Biological Statistics & Computational BiologyCornell UniversityIthacaUSA
  3. 3.Productive Systems EngineeringSan JoseUSA

Personalised recommendations