Specify buffer for MATLAB output
#include "engine.h" integer*4 engOutputBuffer(ep, p) mwPointer ep character*n p
engOutputBuffer defines a character buffer for
engEvalString to return any output that ordinarily appears on the screen.
1 if you pass it a
NULL engine pointer.
The default behavior of
engEvalString is to discard any standard
output caused by the command it is executing. A call to
with a buffer of nonzero length tells any subsequent calls to
engEvalString to save output in the character buffer pointed to by
To turn off output buffering in Fortran, use:
The buffer returned by
engEvalString is not
ep— Pointer to engine
Pointer to engine, specified as
p— Pointer to character buffer
Pointer to character buffer, specified as
n is the length of the buffer.