Learn R Programming

R.matlab (version 3.8.1)

Read and Write MAT Files and Call MATLAB from Within R

Description

Methods readMat() and writeMat() for reading and writing MAT files. For users with MATLAB v6 or newer installed (either locally or on a remote host), the package also provides methods for controlling MATLAB (trademark) via R and sending and retrieving data between R and MATLAB.

Copy Link

Version

Install

install.packages('R.matlab')

Monthly Downloads

112,035

Version

3.8.1

License

LGPL (>= 2.1)

Issues

Pull Requests

Stars

Forks

Maintainer

Henrik Bengtsson

Last Published

September 30th, 2026

Functions in R.matlab (3.8.1)

writeMat

Writes a MAT file structure
setOption.Matlab

Sets the value of an option
Non-documented objects

Non-documented objects
open.Matlab

Tries to open a connection to the MATLAB server
close.Matlab

Closes connection to MATLAB server
R.matlab-package

Package R.matlab
Matlab

MATLAB client for remote or local MATLAB access
as.character.Matlab

Gets a string describing the current MATLAB connection
getVariable.Matlab

Gets one or several MATLAB variables
writeCommand.Matlab

(internal) Writes (sends) an R-to-MATLAB command to the MATLAB server
readResult.Matlab

(internal) Reads results from the MATLAB server
setVariable.Matlab

Sets one or several MATLAB variables
evaluate.Matlab

Evaluates a MATLAB expression
Matlab$startServer

Static method which starts a MATLAB server
finalize.Matlab

(internal) Finalizes the object if deleted
getOption.Matlab

Gets the value of an option
setVerbose.Matlab

Sets the verbose level to get more details about the MATLAB access
1. The MATLAB server running in MATLAB

1. The MATLAB server running in MATLAB
readMat

Reads a MAT file structure from a connection or a file
isOpen.Matlab

Checks if connection to the MATLAB server is open
setFunction.Matlab

Defines a MATLAB function