evaluate.Matlab: Evaluates a MATLAB expression

evaluate.MatlabR Documentation

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.


HenrikBengtsson/R.matlab documentation built on Aug. 28, 2022, 3:21 p.m.