Learn R Programming

R.matlab (version 3.8.0)

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

29,090

Version

3.8.0

License

LGPL (>= 2.1)

Issues

Pull Requests

Stars

Forks

Maintainer

Henrik Bengtsson

Last Published

September 9th, 2026

Functions in R.matlab (3.8.0)

setFunction.Matlab

Defines a MATLAB function
setVariable.Matlab

Sets one or several MATLAB variables
isOpen.Matlab

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

Sets the value of an option
readResult.Matlab

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

Tries to open a connection to the MATLAB server
Matlab$startServer

Static method which starts a MATLAB server
writeCommand.Matlab

(internal) Writes (sends) an R-to-MATLAB command to the MATLAB server
readMat

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

Sets the verbose level to get more details about the MATLAB access
writeMat

Writes a MAT file structure
Non-documented objects

Non-documented objects
1. The MATLAB server running in MATLAB

1. The MATLAB server running in MATLAB
evaluate.Matlab

Evaluates a MATLAB expression
R.matlab-package

Package R.matlab
Matlab

MATLAB client for remote or local MATLAB access
getOption.Matlab

Gets the value of an option
close.Matlab

Closes connection to MATLAB server
getVariable.Matlab

Gets one or several MATLAB variables
finalize.Matlab

(internal) Finalizes the object if deleted
as.character.Matlab

Gets a string describing the current MATLAB connection