Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

engGetVariable

Copy variable from Nelson engine workspace

Syntax

  • #include "engine.h"
  • mxArray *engGetVariable(Engine *ep, const char *name);

Input argument

  • Engine *ep - handle to Nelson engine.
  • const char *name - name of mxArray in the Nelson workspace (base scope).

Output argument

  • mxArray * - Pointer to an allocated mxArray structure. Do not forget to free.

Description

Copy variable from Nelson engine workspace.

The limit for the size of data transferred is 2048 MB.

Example

edit([modulepath('mex', 'tests'), '/test_engine.c'])

See also

mex, engPutVariable.

History

VersionDescription
1.0.0initial version

Author

Allan CORNET