bdIsLibrary
Determine whether model is library
Syntax
Description
Examples
Check One Model
Open the example. Then, load the vdp and MLFB_library models.
h1=load_system('vdp')h1 = 153.0010
h2=load_system('MLFB_library')h2 = 360.0035
Check whether the vdp model is a library.
bdIsLibrary(h1)
ans = logical
0
The function returns a logical scalar, 0, which indicates that the vdp model is not a library.
Check Multiple Models
You can check whether multiple models are libraries with a single function call.
Check whether the vdp and MLFB_library models are libraries. Specify the models to check as a matrix of handles.
bdIsLibrary([h1,h2])
ans = 1×2 logical array
0 1
Alternatively, specify the models to check as a cell array of character vectors.
bdIsLibrary({'vdp','MLFB_library'})ans = 1×2 logical array
0 1
The function returns the logical array [0 1], which indicates that:
The
vdpmodel is not a library.The
MLFB_librarymodel is a library.
Input Arguments
Name or handle of loaded model, specified as a numeric array, string array, character vector, or cell array of character vectors.
Data Types: double | char | string | cell
Output Arguments
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
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.
Amerika
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- 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)