Main Content

modelfinder.createDatabase

Create new database to index models

Since R2023b

    Description

    example

    modelfinder.createDatabase(dbPath) creates a new database to index models specified by path dbPath. For more information on indexing models, see modelfinder.registerFolder.

    example

    modelfinder.createDatabase(dbPath,alias) creates a new database specified by path dbPath and associates the specified alias with the database.

    Examples

    collapse all

    Create a new database digital_systems.db in a specified path.

    modelfinder.createDatabase("communication/databases/digital_systems.db")

    You can use the new database digital_systems.db to index models by using the modelfinder.registerFolder function.

    Create a new database digital_systems.db and assign alias Digital.

    modelfinder.createDatabase("communication/databases/digital_systems.db","Digital")

    You can use the new database to index models by using the modelfinder.registerFolder function.

    Input Arguments

    collapse all

    Absolute or relative path to the database file to be created, specified as a string scalar or character vector.

    Example: "communication/databases/digital_systems.db"

    Data Types: string | char

    Alternative name of the database, specified as a string scalar or character vector. If an alias is not set, Model Finder uses the database filename as the alias.

    Example: "Digital"

    Data Types: string | char

    Alternatives

    You can create databases by using the Model Finder user interface. For more information, see Create New Database and Store Model Information.

    Version History

    Introduced in R2023b

    expand all