engClose (C and Fortran) - Quit MATLAB® engine session

C Syntax

#include "engine.h"
int engClose(Engine *ep);

Fortran Syntax

integer*4 engClose(ep)
mwPointer ep

Arguments

ep

Engine pointer

Returns

0 on success, and 1 otherwise. Possible failure includes attempting to terminate a MATLAB engine session that was already terminated.

Description

This routine sends a quit command to the MATLAB engine session and closes the connection.

C Examples

UNIX®[1] Operating Systems

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.

Microsoft® Windows® Operating Systems

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® systems.

Fortran Examples

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.

See Also

engOpen


[1] UNIX is a registered trademark of The Open Group in the United States and other countries.

  


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