PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Supported types
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
Retrieves the value of a variable for the MATLAB session.
Versions 24 and later
WEBDEV - Server codeWindows This function is now available for WEBDEV sites in Windows.
New in version 24
WEBDEV - Server codeWindows This function is now available for WEBDEV sites in Windows.
WEBDEV - Server codeWindows This function is now available for WEBDEV sites in Windows.
Example
gnSessionID is int = mlInitialize()
IF ErrorOccurred() THEN
ErrorInfo(errFullDetails)
RETURN
END
...
aResult is array of 1 by 1 real = [[123]]
 
mlResetWorkspace(gnSessionID)
aResult = mlGetVariable(gnSessionID, "myRoot")
IF ErrorOccurred THEN
Trace("Error: " + ErrorInfo())
END
 
Trace("Root = " + aResult[1,1])
Syntax
<Result> = mlGetVariable(<Session identifier> , <Variable name>)
<Result>: Array of integers, reals, ...
Value of sought variable.
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.
<Variable name>: Character string
Name of the variable to retrieve.
Remarks

Supported types

The supported types are:
  • signed and unsigned integers on 1, 2, 4 and 8,
  • reals on 4 and 8,
  • booleans,
  • characters.
Component: wd270com.dll
Minimum version required
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment