Main Content

modelfinder.setDefaultDatabase

Set default database to index models

Since R2023b

    Description

    modelfinder.setDefaultDatabase(dbPath) sets the database specified by path dbPath as the default database to index models. For more information on indexing models, see modelfinder.registerFolder.

    example

    modelfinder.setDefaultDatabase(dbPath,alias) sets the database specified by path dbPath as the default database to index models and assigns an alias specified by alias.

    example

    Examples

    collapse all

    Set a registered database digital_systems.db as the default database to index models with Model Finder.

    modelfinder.setDefaultDatabase("communication/database/digital_systems.db")

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

    Set a registered database digital_systems.db as the default database to index models with Model Finder and assign an alias Digital.

    modelfinder.setDefaultDatabase("communication/database/digital_systems.db","Digital")

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

    Input Arguments

    collapse all

    Absolute or relative path to the database file to be set as default database to index models, specified as a string scalar or character vector.

    Example: "communication/databases/digital_systems.db"

    Data Types: string | char

    Alternate 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

    Version History

    Introduced in R2023b

    expand all