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
mlExecute (Function)
In french: mlExecute
Evaluates and runs a command on a MATLAB session.
Example
IF gnIdSession = -1 THEN
	ToastDisplay("MATLAB non initialisé")
	RETURN
END

sChaîneAExécuter is string = [
a = [ 1 2 3; 2 3 4; 1 2 5]
b = [ 2 1 3 ; 5 0 -2; 2 3 -1]
prod = a * b
]

let sRésultat = mlExecute(gnIdSession, sChaîneAExécuter)

SAI_Résultat = sRésultat
Syntax
<Result> = mlExecute(<Session identifier> , <Command>)
<Result>: Character string
Content of standard output returned by the command execution.
<Session identifier>: Integer
Identifier of MATLAB session. This identifier is returned by mlInitialize.
<Command>: Character string
MATLAB command to run.
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