Determine whether model, subsystem, or library is loaded
Check Whether Model Is Loaded
Check whether the
f14 model is loaded.
ans = logical 0
The function returns a logical scalar,
indicates that the file is not loaded.
To load the
f14 model, use the
Check Whether Multiple Models Are Loaded
Determine whether the
models are loaded.
ans = 1×2 logical array 1 0
The function returns a 1-by-2 logical array, which indicates that the
first model in the cell array (
f14) is loaded and the
second model in the cell array (
vdp) is not
To load the
vdp model, use the
bd — Name of model, subsystem, or library
string array | character vector | cell array of character vectors
Name of model, subsystem, or library, specified as a string array, character vector, or cell array of character vectors.
Blocks, such as Subsystem blocks, cannot be loaded independently. Referenced subsystems can be loaded independently. For more information, see Subsystem Reference.
tf — True or false result
0 | logical array
True or false result, returned as a
0 of data type
true) — File is loaded.
false) — File is not loaded.
When multiple files are specified, the function returns a logical array with one entry for each file.
Introduced in R2008a