AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Comunicación / Funciones para acceder a MATLAB
  • Supported types
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Retrieves the value of a variable for the MATLAB session.
Ejemplo
gnIdSession is int = mlInitialize()
IF ErrorOccurred() THEN
	ErrorInfo(errFullDetails)
	RETURN
END
...
aResult is array of 1 by 1 real = [[123]]

mlResetWorkspace(gnIdSession)
tResult = mlGetVariable(gnIdSession, "maRac")
IF ErrorOccurred THEN
	Trace("Error: " + ErrorInfo())
END

Trace("Root = " + aResult[1,1])
Sintaxis
<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 more details on 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.
Observaciones

Supported types

The supported types are:
  • signed and unsigned integers on 1, 2, 4 and 8,
  • reals on 4 and 8,
  • booleans,
  • characters.
Componente: wd300com.dll
Versión mínima requerida
  • Versión 20
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

Señalar un error o enviar una sugerencia | Ayuda local