Main Content

modelfinder

Search and open examples, models, and projects

Since R2022a

    Description

    example

    modelfinder(searchTerm) displays a numbered list of examples, models, and projects available in databases that match the search term and prompts you to enter a corresponding number to open any search result. Other options in the prompt include q to quit and m to see more results.

    Model Finder supports keyword-based search and natural language query. When you enter a search term, Model Finder matches your search term with the model names, example names, model paths, description, annotation, block names, and block types in the databases selected for searching. For more information on setting search databases with Model Finder, see modelfinder.setSearchDatabase. The search results that appear indented and prefixed with > are Simulink® models that are a part of an example or project.

    example

    modelfinder(___,Name=Value) specifies search options using one or more name-value arguments in addition to the input argument combination in the previous syntax. For example, your search query can be a combination of the search term and block names.

    Examples

    collapse all

    Search for models in the search databases using the search term autosar.

    modelfinder("autosar")
       1. DesignAUTOSARComponentsExample
       2.   > autosar_composition
       3.   > autosar_swc_actuator
       4.   > autosar_swc_controller
       5.   > autosar_swc_monitor
       6.   > autosar_swc_pedal_sensor
       7.   > autosar_swc_throttle_sensor
       8.   > autosar_system
       9. AUTOSARCounterExample
            > autosar_swc_counter
      10. AccessAUTOSARDefaultInternalPackagingExample
            > autosar_swc
      11. AddDataElementToSenderInterfaceExample
            > autosar_swc_expfcns
      12. AnalyzeAnExportFunctionModelWithFunctionCallSubsystemsExample
            > sldvExportFunction_autosar_multirunnables
      13. ConfigureAndSimulateAUTOSARFiMServiceCallsExample
      14.   > autosar_bsw_fim
      15.   > autosar_bsw_fimmonitor
      16.   > autosar_bsw_fimoperationcycle
      17.   > autosar_bsw_fimsensor1
      18.   > autosar_bsw_fimsensor2
      19. FindModelStatesInSimulinkMappingsExample
            > autosar_swc
      20. FindSenderReceiverInterfacesThatAreNotServicesExample
            > autosar_swc_expfcns
    
    Showing 1-20 of 286 matches. Enter (m) for more results.
    
    Enter the example number you want to open (choose number)...
    OR see more results (m) OR quit (q)
    Selection:
     

    Note, running the same query may produce different results depending on the database version.

    Search for models in the search databases using the search term solar panel models in simulink.

    modelfinder("solar panel models in simulink")
       1. PeakShavingWithBESSExample
            > sscv_peak_shaving
       2. WormAndGearConstraintExample
            > WormAndGearConstraint
       3. HybridSolarPanelExample
            > sscv_hybrid_solar_panel
       4. GenerateHDLFromMultipleSimscapeNetworksExample
       5.   > Solar_Power_Inverter_Multiple_Network_HDL
       6.   > Solar_Power_Inverter_Multiple_Network_StateSpace
       7. PartitionLargeNetworkIntoMultipleSmallerNetworksExample
            > Solar_Power_Inverter_Single_Network_HDL
    Enter the example number you want to open (choose number) OR quit (q) :

    Note, running the same query may produce different results depending on the database version.

    Search for models in the search databases that contain specific search terms and blocks. For example, you can filter for models that contain the search term fluid and have a block named condenser.

    modelfinder("fluid",blocks="condenser",verbose="off")
       1. TwoPhaseFluidRefrigerationExample
            > TwoPhaseFluidRefrigeration
       2. DataCenterCoolingExample
            > DataCenterCooling
       3. RankineCycleSteamTurbineExample
            > RankineCycleSteamTurbine
       4. CondenserAndEvaporatorHeatTransferExample
            > CondenserAndEvaporatorHeatTransfer
       5. ElectricVehicleThermalManagementExample
            > ElectricVehicleThermalManagement
       6. ResidentialAirSourceHeatPumpExample
            > ResidentialAirSourceHeatPump
       7. ResidentialGroundSourceHeatPumpExample
            > ResidentialGroundSourceHeatPump
       8. ResidentialRefrigeratorExample
            > ResidentialRefrigerator
       9. LiquidAirEnergyStorageSystemExample
            > LiquidAirEnergyStorageSystem
      10. RefrigerationCycleAirConditioningExample
            > RefrigerationCycleAirConditioning
    Enter the example number you want to open (choose number) OR quit (q) :

    Note, running the same query may produce different results depending on the database version.

    Input Arguments

    collapse all

    Search string to find examples, models, and projects in selected databases, specified as a string scalar or character vector. You can use the wildcard asterisk symbol (*) with the search term for multiple character searching.

    Example: "autosar"

    Example: "pmsm models using discrete pulse generator"

    Data Types: string | char

    Name-Value Arguments

    Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

    Example: modelfinder("fluid",blocks="condenser") finds models with the search term fluid having a block named condenser.

    Name or type of blocks used to filter the search results, specified as a string scalar or character vector for a single block, or a string array or cell array of character vectors for multiple blocks.

    Note

    Filtering using blocks cannot be combined with searches using natural language queries.

    Example: blocks="gain"

    Example: blocks=["Unit Delay","Mux","Ramp"]

    Data Types: string | char | cell

    Option to display additional information related to the search results, specified as one of these values:

    • "off" — Displays only the names of the matched examples, models, and projects.

    • "on" — Displays the names of the matched examples, models, and projects with these additional details:

      • Model path — Path to the Simulink model.

      • Source — Name of the example component, if the model is a part of an example.

      • Matched in — Locations of the text that matches the search terms. This includes the model name, example name, model path, description, annotation, block names, and block type.

      • Matched text — Matching search terms.

    Example: verbose="on"

    Number of search results displayed per page, specified as a numeric scalar.

    Example: resultsPerPage = 5

    Data Types: double

    Version History

    Introduced in R2022a

    expand all