Learn R Programming

R.matlab (version 3.7.0)

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 Matlab
evaluate(this, ..., collapse=";", capture=FALSE)

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.

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.

Author

Henrik Bengtsson

See Also

For more information see Matlab.