Documentation

Contents

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 an already-terminated MATLAB® engine session.

Description

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

Examples

See the following examples in matlabroot/extern/examples/eng_mat.

See Also

engOpen

Was this topic helpful?