| MATLAB® | ![]() |
#include "engine.h"
int engPutVariable(Engine *ep, const char *name, const mxArray
*pm);
integer*4 engPutVariable(ep, name, pm) mwPointer ep, pm character*(*) name
Engine pointer
Name given to the mxArray in the engine's workspace
mxArray pointer
0 if successful and 1 if an error occurs.
engPutVariable writes mxArray pm to the engine ep, giving it the variable name name. If the mxArray does not exist in the workspace, it is created. If an mxArray with the same name already exists in the workspace, the existing mxArray is replaced with the new mxArray.
See engdemo.c in the eng_mat subdirectory of the examples directory for a sample program that illustrates how to call the MATLAB engine functions from a C program.
See engwindemo.c in the eng_mat subdirectory of the examples directory for a sample program that illustrates how to call the MATLAB engine functions from a C program for Windows systems.
[1] UNIX is a registered trademark of The Open Group in the United States and other countries.
![]() | engOutputBuffer (C and Fortran) | engSetVisible (C) | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |