matlab.engine.MatlabEngine
Namespace: matlab.engine
Python object using MATLAB as computational engine within Python session
Description
The MatlabEngine
class uses a MATLAB® process as a computational engine for Python®. You can call MATLAB functions as methods of a MatlabEngine
object because the
functions are dynamically invoked when you call them. You also can call functions and scripts
that you define. You can send data to, and retrieve data from, the MATLAB workspace associated with a MatlabEngine
object.
Creation
The matlab.engine.start_matlab
method creates a
MatlabEngine
object each time it is called. There is no need to call
matlab.engine.MatlabEngine()
to create MatlabEngine
objects of your own.
Attributes
Attribute | Description |
---|---|
| Python dictionary containing references to MATLAB variables. You can assign data to, and get data from, a MATLAB variable through the |
Methods
Exceptions
Exception | Description |
---|---|
MatlabExecutionError | Function call fails to execute |
RejectedExecutionError | MATLAB engine terminated |
SyntaxError | Syntax error in a function call |
TypeError | Data type of an input or output argument not supported |
Examples
Version History
Introduced in R2014b