Main Content

bdIsLibrary

R2026b

Check whether model is library

Description

tf = bdIsLibrary(sys) returns whether the specified model is a library.

example

Examples

collapse all

Suppose you have two models, named myModel1 and myModel2, respectively.

Check whether the models are libraries.

bdIsLibrary(["myModel1","myModel2"])
ans = 1×2 logical array
0	1

myModel1 is not a library, but myModel2 is a library.

Input Arguments

collapse all

One or more models to check, specified as handles or names. Format handles as numeric scalars or numeric arrays. Format names as string, string arrays, character vectors, or cell arrays of character vectors.

For information about getting handles and paths, see Get Handles and Paths.

Example: "myModel"

Example: ["myModel1","myModel2"]

Data Types: double | array of doubles | string | string array | character vector | cell array of character vectors

Output Arguments

collapse all

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.

Data Types: logical

Version History

Introduced in R2015a