| External Interfaces/API Reference | ![]() |
Specify buffer for MATLAB output
Fortran Syntax
integer*4 function engOutputBuffer(ep, p)
integer*4 ep
character*n p
p
n, where n is the length of buffer p.
Description
engOutputBuffer defines a character buffer for engEvalString to return any output that would appear on the screen.
The default behavior of engEvalString is to discard any standard output caused by the command it is executing. engOutputBuffer(ep, p) tells any subsequent calls to engEvalString to save the first n characters of output in the character buffer p.
Example
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.
| engOpen | engPutFull | ![]() |