MatlabEval: Evaluate a Matlab command (from R)

Description Usage Arguments Value Author(s) References See Also

Description

This function allows the R programmer to send a Matlab command to the Matlab engine to be evaluated. This command is evaluated as if one typed it at the Matlab prompt, including accessing variables and assigning results to the Matlab workspace for use in subsequent calls.

Usage

1
.MatlabEval(command, engine)

Arguments

command

the Matlab command to be evaluated as if it were typed at the Matlab prompt.

engine

the MatlabEngine reference object, obtained via a call to .MatlabInit.

Value

An integer indicating whether the command was evaluated without error or not. (Currently, not certain if we can detect an error from the result!)

Author(s)

Duncan Temple Lang <duncan@wald.ucdavis.edu>

References

Matlab External Interface Guide, the Engine API. Matlab User's Guide

See Also

.MatlabPut .MatlabGet .Matlab .MatlabInit


omegahat/RMatlab documentation built on May 24, 2019, 1:54 p.m.