Main Content

modelfinder.setSearchDatabase

Set search scope to find models

Since R2023b

    Description

    modelfinder.setSearchDatabase(dbPaths) sets one or more database paths as the search databases for Model Finder. The search databases define the search scope for Model Finder to find models, examples, and projects based on your search query. For more information on searching databases, see modelfinder.

    example

    Examples

    collapse all

    Set registered databases digital_systems.db and analog_systems.db located in specified paths as the search databases to find models.

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

    After setting the search databases, you can search for models, examples, and projects using the modelfinder function.

    Input Arguments

    collapse all

    Absolute or relative paths to the database files to be set as the search databases to find models, examples, and projects, specified as a string scalar 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

    Alternatives

    You can select search databases using the Model Finder user interface. For more information, see Configure and Search Databases.

    Version History

    Introduced in R2023b

    expand all