ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Functions for accessing MATLAB
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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. 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.
Component: wd290com.dll
Minimum version required
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help