finding-simulink-examples

Search the MathWorks example model catalog and return open commands for matching Simulink examples.

1.0k|98|Updated Apr 15, 2026
One-click install
npx skills add https://github.com/matlab/simulink-agentic-toolkit --skill finding-simulink-examples
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finding-simulink-examples
Source: https://github.com/matlab/simulink-agentic-toolkit/tree/main/skills-catalog/simulink-environment-fundamentals/finding-simulink-examples
Command: npx skills add https://github.com/matlab/simulink-agentic-toolkit --skill finding-simulink-examples

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Locating the right shipped MathWorks example model among more than 10,000 entries is difficult, and the built-in modelfinder function is interactive and cannot be driven programmatically by an AI agent.

Core Features & Use Cases

  • Non-Interactive Catalog Search: The invokeModelFinder helper script queries the full MathWorks example database and returns structured YAML results with name, open command, and description.
  • Filtered and Scoped Queries: Narrow results by product, block, reference model, or free-text keywords, and choose between categorized example views or individual model listings.
  • Use Case: When a user asks for an example demonstrating PID motor control, the agent searches the catalog, presents a table of matches with openExample commands, and offers to open the chosen example read-only.

Quick Start

Ask the agent to find a shipped Simulink example that demonstrates a concept, such as battery modeling or PID control, and list the matching examples with their open commands.

Frequently Asked Questions about finding-simulink-examples

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find shipped Simulink example models programmatically?

Call the invokeModelFinder helper script with a free-text query through evaluate_matlab_code, setting project_path to the skill's scripts folder. It returns YAML results with each match's name, open_command, and description, avoiding the interactive modelfinder menu.

How can I filter MathWorks example search results by product or block?

Pass a filters_json argument such as {"product": "Simscape Electrical", "block": "PID Controller"} to invokeModelFinder. Filters for product, block, reference, location, and match scope the results, and are supported from R2025a onward.

Does the example search work on older MATLAB releases?

Yes, the helper runs on MATLAB R2023a or later. Before R2025a the filters and view options are ignored and it performs a plain keyword search, but you should still pass all four arguments since the helper degrades gracefully.

Can I search my own project models with this example finder?

No, this search covers only shipped MathWorks examples in the MathWorks database, not models in your working directory or open project. It is a database lookup, not a local disk scan.

Why should shipped example models be treated as read-only?

Shipped examples belong to the MathWorks installation and must never be edited, deleted, or overwritten with save_system. If you need to modify one, save it under a new filename first and work on the copy.