Main Content

isSimulinkStarted

Check whether Simulink is started

Description

example

tf = isSimulinkStarted returns whether Simulink® is started.

Examples

collapse all

isSimulinkStarted
ans =

  logical

   0

The returned value 0 indicates that Simulink is not started.

Start Simulink.

simulink

Confirm that Simulink is started.

isSimulinkStarted
ans =

  logical

   1

The returned value 1 indicates that Simulink is started.

Output Arguments

collapse all

True or false result, returned as a 1 or 0 of data type logical.

  • 1 (true) — Simulink is started.

  • 0 (false) — Simulink is not started.

When multiple files are specified, the function returns a logical array with one entry for each file.

Introduced in R2020b