ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / Functions for accessing MATLAB
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
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
nIdSession is int = mlInitialize()
IF ErrorOccurred THEN
	ErrorInfo(errFullDetails)
	RETURN
END
mlLoadWorkspace(nIdSession, "C:\temp\workspace.mat")
sListeVar is string = mlListVariable(nIdSession)
mlEnd(nIdSession)
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 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.
<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: wd300com.dll
Minimum version required
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help