|
|
|
|
mlLoadWorkspace (Function) In french: mlChargeEspaceDeTravail Loads all the variables of a MATLAB file in the session. The workspace of the MatLab session is initialized by loading all the file variables (file in Mat-File format whose extension is.MAT). nSessionID is int = mlInitialize() IF ErrorOccurred THEN ErrorInfo(errFullDetails) RETURN END mlLoadWorkspace(nSessionID, "C:\temp\workspace.mat") sVarList is string = mlListVariable(nSessionID) mlEnd(nSessionID)
Syntax
<Result> = mlLoadWorkspace(<Session identifier> , <File name> , <Variables stored>)
<Result>: Boolean - True if the load operation was successful.
- False otherwise. If an error occurs, the ErrorOccurred variable is set to True. To get the details of 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. <Variables stored>: Boolean - True to store the existing variables. The existing variable is stored except if it is redefined in the file. In this case, the variable of the session is overwritten.
- False not to store them (default value). The variables found in the session are deleted before the load operation.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|