Ends a MATLAB session. This session was initialized by
mlInitialize.
nSessionID is int = mlInitialize()
IF ErrorOccurred() THEN
ErrorInfo(errFullDetails)
RETURN
END
mlExecute(nSessionID, "A = cosd(180)")
...
mlEnd(nSessionID)
Syntax
mlEnd(<Session identifier>)
<Session identifier>: Integer
Identifier of the MATLAB session to use. This identifier is returned by mlInitialize.