Amazon cover image
Image from Amazon.com

R and MATLAB

By: Material type: TextTextSeries: The R SeriesPublication details: London CRC Press 2015Description: xix, 210 p. 25 cm ; HardISBN:
  • 9781466568389
Subject(s): DDC classification:
  • 510.28553 HIE
Contents:
Installing and Running R and MATLAB Obtaining and installing Commands for getting help Demos Quitting Additional resources Getting Started: Variables and Basic Computations Variable names Assignment statements Basic computations Formatting of output Other computations Complex numbers Strange variable names in R Data types Matrices and Vectors Overview Creating vectors Working with vectors Creating matrices Working with matrices Reshaping matrices, and higher-dimensional arrays Sparse matrices Names with vectors and matrices/arrays Miscellaneous Matrix/Vector Calculations and Functions Applying a function to rows or columns of a matrix Applying a function to all elements of a matrix Linear algebra calculations with vectors and matrices Statistical calculations Vectorized logical tests Other calculations Lists and Cell Arrays Creating lists and cell arrays Using lists and cell arrays Applying functions to all elements of lists and cell arrays Converting other data types to lists and cell arrays Converting lists and cell arrays to other data types Flow Control Conditional ("if") statements "If/else" statements "for" loops "while" loops Breaking out of loops "switch" statements "ifelse" statements in R Running Code from Files: Scripts Current working directory The MATLAB search path Executing code from a file Creating a new script document in the editor Comments in script files Executing code from the editor window Summary of differences Writing Your Own Functions R MATLAB Summary of main differences Probability and Random Numbers Basic random values, permutations, and samples Random number seed Random variates from probability distributions PDFs, CDFs, and inverse CDFs Graphics Creating, selecting, and closing figure windows Basic 2-D scatterplots Adding additional plots to a figure Axis ranges Logarithmic axis scales Background grid Plotting multiple data sets simultaneously Axis labels and figure titles Adding text to figures Greek letters and mathematical symbols Arrows Figure legends Size and font adjustments Two y axes Plotting functions Image plots and contours Colormaps 3-D plotting Multiple subplots in one figure Saving figures Other types of plots Final notes about graphics Numerical Computing Root-finding Univariate optimization Multivariate optimization Numerical integration Curve fitting Differential equations File Input and Output Opening files Reading a table of numbers Reading numeric data with a different comment character Reading numbers from a file where different lines have varying numbers of values Reading numbers and strings Reading the raw character data in, a line at a time Writing a table of numbers Writing a set of strings Saving and loading variables in binary format Images URLs Excel files Miscellaneous Working with variables Character strings Reading user input Recording a copy of commands and output Date calculations Miscellaneous Debugging Startup and shutdown sequences Add-ons: packages and toolboxes Object-oriented programming Other interfaces Efficiency/performance Calling C R MATLAB Bibliography Index of R commands, variables, and symbols Index of MATLAB commands, variables, and symbols
Summary: Features Provides an introduction for those who are experienced with either R or MATLAB and now wish to learn the other software platform Summarizes the differences between R and MATLAB Explains how to put commands in a script and modify and debug the commands Shows how to write a function, produce high-quality graphics, and perform standard numeric computations Includes an R index and a MATLAB index that make it easy to look up a command known in one of the languages and understand how to do it in the other Summary The First Book to Explain How a User of R or MATLAB Can Benefit from the Other In today’s increasingly interdisciplinary world, R and MATLAB® users from different backgrounds must often work together and share code. R and MATLAB® is designed for users who already know R or MATLAB and now need to learn the other platform. The book makes the transition from one platform to the other as quick and painless as possible. Enables R and MATLAB Users to Easily Collaborate and Share Code 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.
Tags from this library: No tags from this library for this title. Log in to add tags.
Holdings
Item type Current library Collection Call number Status Date due Barcode
Books Books H.T. Parekh Library GSB Collection 510.28553 HIE (Browse shelf(Opens below)) Available B2034

Alpha Invoice.2231- 11th Feb 16 Rs.4,620.47/-

Installing and Running R and MATLAB
Obtaining and installing
Commands for getting help
Demos
Quitting
Additional resources

Getting Started: Variables and Basic Computations
Variable names
Assignment statements
Basic computations
Formatting of output
Other computations
Complex numbers
Strange variable names in R
Data types

Matrices and Vectors
Overview
Creating vectors
Working with vectors
Creating matrices
Working with matrices
Reshaping matrices, and higher-dimensional arrays
Sparse matrices
Names with vectors and matrices/arrays
Miscellaneous

Matrix/Vector Calculations and Functions
Applying a function to rows or columns of a matrix
Applying a function to all elements of a matrix
Linear algebra calculations with vectors and matrices
Statistical calculations
Vectorized logical tests
Other calculations

Lists and Cell Arrays
Creating lists and cell arrays
Using lists and cell arrays
Applying functions to all elements of lists and cell arrays
Converting other data types to lists and cell arrays
Converting lists and cell arrays to other data types

Flow Control
Conditional ("if") statements
"If/else" statements
"for" loops
"while" loops
Breaking out of loops
"switch" statements
"ifelse" statements in R

Running Code from Files: Scripts
Current working directory
The MATLAB search path
Executing code from a file
Creating a new script document in the editor
Comments in script files
Executing code from the editor window
Summary of differences

Writing Your Own Functions
R
MATLAB
Summary of main differences

Probability and Random Numbers
Basic random values, permutations, and samples
Random number seed
Random variates from probability distributions
PDFs, CDFs, and inverse CDFs

Graphics
Creating, selecting, and closing figure windows
Basic 2-D scatterplots
Adding additional plots to a figure
Axis ranges
Logarithmic axis scales
Background grid
Plotting multiple data sets simultaneously
Axis labels and figure titles
Adding text to figures
Greek letters and mathematical symbols
Arrows
Figure legends
Size and font adjustments
Two y axes
Plotting functions
Image plots and contours
Colormaps
3-D plotting
Multiple subplots in one figure
Saving figures
Other types of plots
Final notes about graphics

Numerical Computing
Root-finding
Univariate optimization
Multivariate optimization
Numerical integration
Curve fitting
Differential equations

File Input and Output
Opening files
Reading a table of numbers
Reading numeric data with a different comment character
Reading numbers from a file where different lines have varying numbers of values
Reading numbers and strings
Reading the raw character data in, a line at a time
Writing a table of numbers
Writing a set of strings
Saving and loading variables in binary format
Images
URLs
Excel files

Miscellaneous
Working with variables
Character strings
Reading user input
Recording a copy of commands and output
Date calculations
Miscellaneous
Debugging
Startup and shutdown sequences
Add-ons: packages and toolboxes
Object-oriented programming
Other interfaces
Efficiency/performance

Calling C
R
MATLAB

Bibliography

Index of R commands, variables, and symbols

Index of MATLAB commands, variables, and symbols

Features

Provides an introduction for those who are experienced with either R or MATLAB and now wish to learn the other software platform
Summarizes the differences between R and MATLAB
Explains how to put commands in a script and modify and debug the commands
Shows how to write a function, produce high-quality graphics, and perform standard numeric computations
Includes an R index and a MATLAB index that make it easy to look up a command known in one of the languages and understand how to do it in the other
Summary

The First Book to Explain How a User of R or MATLAB Can Benefit from the Other

In today’s increasingly interdisciplinary world, R and MATLAB® users from different backgrounds must often work together and share code. R and MATLAB® is designed for users who already know R or MATLAB and now need to learn the other platform. The book makes the transition from one platform to the other as quick and painless as possible.

Enables R and MATLAB Users to Easily Collaborate and Share Code

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.

There are no comments on this title.

to post a comment.

Copyright @ 2024  |  All rights reserved, H.T. Parekh Library, Krea University, Sri City