Documentation Home Page RT-LAB Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

ExecuteMatlabCmd

Group

Utilities

Description

Send a command to Matlab and return Matlab's messages. If Matlab has not been started yet, the function starts Matlab before sending the command.

Required Control

None

Usage

result = RtlabApi.ExecuteMatlabCmd (cmd)

Input

  • cmd: Matlab command to be executed.

Output

  • result: result Messages returned by Matlab.

Exception

  • EBADF: Model not specified by previous Connect or OpenProject.

  • EIO: Error sending the request or receiving the reply.

  • EINVAL: Model is of a type for which this operation is not supported.

  • EFAULT: Invalid parameter.

Examples

See example matlab_analysis.

Related Items

None

Modules

import RtlabApi

OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323
Follow OPAL-RT: LinkedIn | Facebook | YouTube | X/Twitter