Main Content

modelfinder.registerDatabase

Register database with Model Finder

Since R2023b

    Description

    example

    modelfinder.registerDatabase returns a prompt to enter paths and aliases of existing databases to register with the Model Finder.

    example

    modelfinder.registerDatabase(dbPaths) registers existing databases specified by one or more database paths with the Model Finder.

    example

    modelfinder.registerDatabase(dbPaths,aliases) registers existing databases specified by one or more database paths and associates the specified aliases with these databases.

    Examples

    collapse all

    Register databases with the Model Finder.

    modelfinder.registerDatabase

    The Command Window prompts to enter the database paths.

    Enter the paths to the databases as comma-separated values:

    Enter the paths to existing database files digital_systems.db and analog_systems.db as comma-separated values.

    communication/databases/digital_systems.db,communication/databases/analog_systems.db

    The Command Window prompts to enter the database aliases.

    Enter alias names for the databases as comma-separated values or carriage-return to skip:

    You can skip this step or enter the aliases as comma-separated values. If you do not set the aliases, the database file names are used as the aliases.

    Digital,Analog

    You can use the registered databases to index models using the modelfinder.registerFolder function.

    Register existing databases digital_systems.db and analog_systems.db located at the specified paths with the Model Finder.

    modelfinder.registerDatabase(["communication/databases/digital_systems.db",...
    "communication/databases/analog_systems.db"])

    You can use the registered databases to index models using the modelfinder.registerFolder function.

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

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

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

    Register existing databases digital_systems.db and analog_systems.db, and assign aliases Digital and Analog, respectively.

    modelfinder.registerDatabase(["communication/databases/digital_systems.db",...
    "communication/databases/analog_systems.db"],["Digital","Analog"])

    You can use the registered databases to index models using the modelfinder.registerFolder function.

    Input Arguments

    collapse all

    Absolute or relative paths to the database files to be registered with the Model Finder, specified as a string or character vector for a single database, or a string array or cell array of character vectors for multiple databases.

    Example: "communication/databases/digital_systems.db"

    Example: ["analog_systems.db","digital_systems.db"]

    Data Types: string | char | cell

    Alternate names of the databases, specified as a string or character vector for a single database, or a string array or cell array of character vectors for multiple databases. If an alias is not set, the database file name is used as the alias.

    Example: "Digital"

    Example: ["Digital","Analog"]

    Data Types: string | char | cell

    Version History

    Introduced in R2023b