PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
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).
Example
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. The ErrorOccurred variable is set to True if an error occurred. To find out the error details, use ErrorInfo associated with the errMessage constant.
<Session Identifier>: Integer
Identifier of MATLAB session. This identifier is returned by mlInitialize.
<File Name>: Character string (with quotes)
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.
Components
WINDEVReports and Queries wd230com.dll
Minimum required version
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment