External Interfaces Reference Previous page   Next Page
engClose

Quit MATLAB engine session

C Syntax

Arguments

ep
   Engine pointer.

Description

This routine allows you to quit a MATLAB engine session.

engClose sends a quit command to the MATLAB engine session and closes the connection. It returns 0 on success, and 1 otherwise. Possible failure includes attempting to terminate a MATLAB engine session that was already terminated.

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  C Engine Functions engEvalString Next page

© 1994-2005 The MathWorks, Inc.