#include <MatlabEngine.h>
Inheritance diagram for MatlabEngine::

Public Types | |
| enum | { ROW = 1, COL = 2 } |
Public Methods | |
| MatlabEngine () | |
| ~MatlabEngine () | |
| void | putMatrix (const Mat(real) &A, const String &s) |
| Mat(real) | getMatrix (const String &s) |
| void | putVector (const Vec(real) &v, const String &s, int dim=COL) |
| void | putVector (const Vec(real) &v, int size, const String &s, int dim=COL) |
| Vec(real) | getVector (const String &s) |
| void | putArrayGen (const ArrayGen(real) &A, const String &s) |
| ArrayGen(real) | getArrayGen (const String &s) |
| void | putScalar (real x, const String &s) |
| real | getScalar (const String &s) |
| void | operator() (const String &s) |
| int | stat () const |
| void | wait () |
Protected Methods | |
| void | _errorMessage () |
Protected Attributes | |
| Engine* | fep |
| int | fStat |
| String | fErrorBuffer |
NAME: MatlabEngine - programming interface for calling Matlab from Diffpack
DESCRIPTION:
This class encapsulates the routines provided by the MATLAB Computational Services (see MATLAB External Interface Guide) and allows the user to make MATLAB calls from their C++ programs.
|
|
|
|
|
Creates an instance of the MatlabEngine. This starts up the engine, or returns with an error if the engine cannot be started. |
|
|
|
|
|
|
|
|
this function allows the user to retrieve an n-dimensional array with the given name from the MATLAB workspace. |
|
|
this function allows the user to retrieve a matrix with the given name from the MATLAB workspace. |
|
|
this function allows the user to retrieve a scalar with the given name from the MATLAB workspace. |
|
|
this function allows the user to retrieve a vector with the given name from the MATLAB workspace. |
|
|
|
|
|
this routine allows the user to put a Diffpack n-dimensional array into the MATLAB workspace. The string variable name will be used to identify the variable in the workspace and can be used in subsequent MATLAB calls. |
|
|
this routine allows the user to put a Diffpack matrix into the MATLAB workspace. The string variable name will be used to identify the variable in the workspace and can be used in subsequent MATLAB calls. |
|
|
this routine allows the user to put a Diffpack scalar into the MATLAB workspace. The string variable name will be used to identify the variable in the workspace and can be used in subsequent MATLAB calls. |
|
|
See documentation of one of the overloaded functions. |
|
|
this routine allows the user to put a Diffpack vector into the MATLAB workspace. The string variable name will be used to identify the variable in the workspace and can be used in subsequent MATLAB calls. |
|
|
returns the status of the MATLAB Engine. If MATLAB cannot issue a given command, "stat()" will return a non-zero value. If everything went okay, it will return a 0 value. Note that syntax errors sent to the MATLAB engine will be caught by the member function "operator (const String& s)". |
|
|
waits for entry from the keyboard before continuing. Since the destructor for MATLAB kills any graphics windows, the user may wish to insert a wait in their program so they have time to view graphics output. |
|
|
|
|
|
|
|
|
|