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