MATLAB Application Program Interface | Search  Help Desk |
engPutFull | Examples |
Write full mxArrays
into the workspace of an engine
integer*4 function engPutFull(ep, name, m, n, pr, pi) integer*4 ep, m, n, pr, pi character*(*) name
ep
mxArray
to put into engine's workspace.
m
n
pr
pi
mxArrays
. This routine provides an easy way to write a full mxArray
into a MATLAB engine process. It offers an alternative to engPutMatrix
, which does not require use of the mxArray
structure.
engPutFull
writes the mxArray
with dimensions m-by-n, real data pr
, and imaginary data pi
into the workspace of engine ep
with the specified name
.
If the mxArray
does not exist in the engine's 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 fengdemo.f
in the eng_mat
subdirectory of the examples
directory for a sample program that illustrates how to call the MATLAB engine functions from a Fortran program.