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.
# S3 method for Matlab
evaluate(this, ..., collapse=";", capture=FALSE)
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
.
One or several string with MATLAB expressions. If several
strings are given they will be concatenated with the separator
collapse
.
Separator to be used to concatenate expressions.
If TRUE
, MATLAB output is captured into a string,
otherwise not.
Henrik Bengtsson
For more information see Matlab
.