bdIsLibrary
Determine whether block diagram is a library
Syntax
Description
Examples
Check Whether Block Diagrams Are Libraries
Load the MLFB_library
and vdp
block diagrams. Get the handle for MLFB_library
.
load_system({'MLFB_library','vdp'}) h = get_param('MLFB_library','Handle');
Check whether vdp
is a library. The returned value 0
indicates that it is not
bdIsLibrary('vdp')
ans = logical
0
Check whether MLFB_library
and vdp
are libraries. The returned value shows that MLFB_library
is a library and vdp
is not.
bdIsLibrary({'MLFB_library','vdp'})
ans = 1x2 logical array
1 0
Using the handle to MLFB_library
, check whether MLFB_library
is a library. The value returned shows that it is.
bdIsLibrary(h)
ans = logical
1
Input Arguments
bd
— Name or handle of loaded block diagram
numeric array | string array | character vector | cell array of character vectors
Name or handle of loaded block diagram, specified as a numeric array, string array, character vector, or cell array of character vectors.
Data Types: double
| 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 a library.0
(false
) — File is not a library.
When multiple files are specified, the function returns a logical array with one entry for each file.
Version History
Introduced in R2015a
See Also
Beispiel öffnen
Sie haben eine geänderte Version dieses Beispiels. Möchten Sie dieses Beispiel mit Ihren Änderungen öffnen?
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)