Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

evaluate.Matlab

Evaluates a MATLAB expression


Description

Evaluates one or several MATLAB expressions on the MATLAB server. This method will not return until the MATLAB server is done.

If an error occurred in MATLAB an exception will be thrown. This exception can be caught by tryCatch().

If you receive error message Expected an 'answer' from MATLAB, but kept receiving nothing, see "Troubleshooting" under ?R.matlab.

Usage

## S3 method for class 'Matlab'
evaluate(this, ..., collapse=";", capture=FALSE)

Arguments

...

One or several string with MATLAB expressions. If several strings are given they will be concatenated with the separator collapse.

collapse

Separator to be used to concatenate expressions.

capture

If TRUE, MATLAB output is captured into a string, otherwise not.

Value

If caputure is TRUE, then a character string of MATLAB output is returned, otherwise the MATLAB status code. The MATLAB status code is also/always returned as attribute status.

Author(s)

Henrik Bengtsson

See Also

For more information see Matlab.


R.matlab

Read and Write MAT Files and Call MATLAB from Within R

v3.6.2
LGPL (>= 2.1)
Authors
Henrik Bengtsson [aut, cre, cph], Andy Jacobson [ctb] (Internal MAT v4 reader), Jason Riedy [ctb] (Support for reading compressed files, sparse matrices and UTF-encoded strings.)
Initial release
2018-09-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.