|
|
|
|
|
mlSaveWorkspace (Function) In french: mlSauveEspaceDeTravail Saves the session workspace in a MATLAB file. gnIdSession is int = mlInitialize()
IF ErrorOccurred THEN
ErrorInfo(errFullDetails)
RETURN
END
sNomEspace is string = "EspTest.mat"
sNomVariable, sListeVariables is string
mlExecute(gnIdSession, "maVar = 1")
Trace("1 - Variables : " + mlListVariable(gnIdSession))
mlSaveWorkspace(gnIdSession, sNomEspace)
mlResetWorkspace(gnIdSession)
Trace("2 - Variables : " + mlListVariable(gnIdSession))
mlExecute(gnIdSession, "maVarEffacee = 2")
mlLoadWorkspace(gnIdSession, sNomEspace, False)
sListeVariables = mlListVariable(gnIdSession)
Trace("3 - Variables : " + sListeVariables)
Syntax
<Result> = mlSaveWorkspace(<Session identifier> , <File name>)
<Result>: Boolean - True if saved successfully.
- False otherwise (if no variable is defined in the session for example). To get more details on the error, use ErrorInfo with the errMessage constant.
<Session identifier>: Integer Identifier of MATLAB session. This identifier is returned by mlInitialize. <File name>: Character string Path and name of the Mat-File file to use.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|