External Interfaces/API Reference Previous page   Next Page
engOutputBuffer

Specify buffer for MATLAB output

C Syntax

Arguments

ep
   Engine pointer.

n
   Length of buffer p.

p
   Pointer to character buffer of length n.

Description

engOutputBuffer defines a character buffer for engEvalString to return any output that ordinarily appears on the screen.

The default behavior of engEvalString is to discard any standard output caused by the command it is executing. engOutputBuffer(ep,p,n) tells any subsequent calls to engEvalString to save the first n characters of output in the character buffer pointed to by p.

To turn off output buffering, use engOutputBuffer(ep,NULL,0);

Examples

UNIX

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.

Windows

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.


Previous page  engOpenSingleUse engPutArray (Obsolete) Next page

Learn more about the latest releases of MathWorks products:

 © 1994-2009 The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS