Book description
This book is designed for users who already know R or MATLAB® and now need to learn the other platform. The author covers essential tasks, such as working with matrices and vectors, writing functions and other programming concepts, graphics, numerical computing, and file input/output. He highlights important differences between the two platforms and explores common mistakes that are easy to make when transitioning from one platform to the other.
Table of contents
- Cover
- Half Title
- Title Page
- Copyright Page
- Dedication Page
- Contents
- List of Figures
- List of Tables
- Preface
- About the Author
- 1 Installing and Running R and MATLAB
- 2 Getting Started: Variables and Basic Computations
- 3 Matrices and Vectors
- 4 Matrix/Vector Calculations and Functions
- 5 Lists and Cell Arrays
- 6 Flow Control
- 7 Running Code from Files: Scripts
- 8 Writing Your Own Functions
- 9 Probability and Random Numbers
-
10 Graphics
- 10.1 Creating, selecting, and closing figure windows
- 10.2 Basic 2-D scatterplots
- 10.3 Adding additional plots to a figure
- 10.4 Axis ranges
- 10.5 Logarithmic axis scales
- 10.6 Background grid
- 10.7 Plotting multiple data sets simultaneously
- 10.8 Axis labels and figure titles
- 10.9 Adding text to figures
- 10.10 Greek letters and mathematical symbols
- 10.11 Arrows
- 10.12 Figure legends
- 10.13 Size and font adjustments
- 10.14 Two y axes
- 10.15 Plotting functions
- 10.16 Image plots and contours
- 10.17 Colormaps
- 10.18 3-D plotting
- 10.19 Multiple subplots in one figure
- 10.20 Saving figures
- 10.21 Other types of plots
- 10.22 Final notes about graphics
- 11 Numerical Computing
-
12 File Input and Output
- 12.1 Opening files
- 12.2 Reading a table of numbers
- 12.3 Reading numeric data with a different comment character
- 12.4 Reading numbers from a file where different lines have varying numbers of values
- 12.5 Reading numbers and strings
- 12.6 Reading the raw character data in, a line at a time
- 12.7 Writing a table of numbers
- 12.8 Writing a set of strings
- 12.9 Saving and loading variables in binary format
- 12.10 Images R
- 12.11 URLs
- 12.12 Excel files
-
13 Miscellaneous
- 13.1 Working with variables
- 13.2 Character strings
- 13.3 Reading user input
- 13.4 Recording a copy of commands and output
- 13.5 Date calculations
- 13.6 Miscellaneous
- 13.7 Debugging
- 13.8 Startup and shutdown sequences
- 13.9 Add-ons: packages and toolboxes
- 13.10 Object-oriented programming
- 13.11 Other interfaces
- 13.12 Efficiency/performance
- 14 Calling C
- Bibliography
- Index of R commands, variables, and symbols
- Index of MATLAB commands, variables, and symbols
Product information
- Title: R and MATLAB
- Author(s):
- Release date: September 2018
- Publisher(s): Chapman and Hall/CRC
- ISBN: 9781315360355
You might also like
book
MATLAB Differential Equations
MATLAB is a high-level language and environment for numerical computation, visualization, and programming. Using MATLAB, you …
book
Programming in MATLAB ®
MATLAB ® provides an interactive programming interface for numerical computation and data visualization making it the …
book
MATLAB Mathematical Analysis
MATLAB Mathematical Analysis is a reference book that presents the techniques of mathematical analysis through examples …
book
MATLAB Matrix Algebra
" MATLAB is a high-level language and environment for numerical computation, visualization, and programming. Using MATLAB, …