Main Content

modelfinder.importDatabase

Import database to Model Finder

Renamed from modelfinder.registerDatabase in R2024a

    Description

    modelfinder.importDatabase(dbPath) imports an existing database specified by the database path dbPath to Model Finder. You can use this database to index and search models by using the modelfinder.registerFolder and modelfinder functions, respectively.

    example

    modelfinder.importDatabase(dbPath,alias) imports an existing database specified by the database path dbPath and associates the specified alias with the database.

    example

    Examples

    collapse all

    Import an existing database digital_systems.db located at the specified path to Model Finder.

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

    You can use the database to index and search models by using the modelfinder.registerFolder and modelfinder functions, respectively.

    Import an existing database digital_systems.db and assign the alias Digital.

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

    You can use the database digital_systems.db to index and search models by using the modelfinder.registerFolder and modelfinder functions, respectively.

    Input Arguments

    collapse all

    Absolute or relative path to the database file to be imported to Model Finder, 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 import databases by using the Model Finder user interface. For more information, see Model Finder.

    Version History

    Introduced in R2023b

    expand all