bdIsLoaded
Determine whether model, subsystem, or library is loaded
Syntax
Description
Examples
Check Whether Model Is Loaded
Check whether the f14
model is loaded.
bdIsLoaded('f14')
ans = logical 0
The function returns a logical scalar, 0
, which
indicates that the file is not loaded.
To load the f14
model, use the load_system
function.
load_system('f14')
Check Whether Multiple Models Are Loaded
Determine whether the f14
and vdp
models are loaded.
bdIsLoaded({'f14','vdp'})
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
loaded.
To load the vdp
model, use the load_system
function.
load_system('vdp')
Input Arguments
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.
Data Types: char
| string
| cell
Output Arguments
tf
— True or false result
1
| 0
| logical array
True or false result, returned as a 1
or
0
of data type logical
.
1
(true
) — File is loaded.0
(false
) — File is not loaded.
When multiple files are specified, the function returns a logical array with one entry for each file.
Version History
Introduced in R2008a
See Also
MATLAB-Befehl
Sie haben auf einen Link geklickt, der diesem MATLAB-Befehl entspricht:
Führen Sie den Befehl durch Eingabe in das MATLAB-Befehlsfenster aus. Webbrowser unterstützen keine MATLAB-Befehle.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)