Initializes a new independent MATLAB session with an empty workspace in order to run functions. During this initialization, the shell of MATLAB is displayed during a few seconds.
Remark: This function requires MATLAB version 7.3 or later.
gnSessionID is int
gnSessionID = mlInitialize()
IF gnSessionID = -1 THEN
STC_MLSession = "MATLAB initialized"
<Result> = mlInitialize()
- Identifier of MATLAB session. This identifier will be used by the functions for MATLAB management.
- -1 if an error occurred. To get the details of the error, use ErrorInfo with the errMessage constant.