simulating-simulink-models

Execute Simulink models programmatically for parameter sweeps and custom analysis.

917|94|Updated Apr 15, 2026
One-click install
npx skills add https://github.com/matlab/simulink-agentic-toolkit --skill simulating-simulink-models
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: simulating-simulink-models
Source: https://github.com/matlab/simulink-agentic-toolkit/tree/main/skills-catalog/model-based-design-core/simulating-simulink-models
Command: npx skills add https://github.com/matlab/simulink-agentic-toolkit --skill simulating-simulink-models

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of running Simulink models programmatically, allowing for data exploration, parameter sweeps, and custom analysis.

Core Features & Use Cases

  • Simulation Execution: Run Simulink models using sim() with SimulationInput/SimulationOutput.
  • Custom Analysis: Perform analysis on simulation results, including parameter sweeps and batch simulations.
  • Use Case: For example, simulate a control system model with various parameters to analyze performance.

Quick Start

Run the Simulink model 'MyModel' with a specified 'StopTime' of '10' and 'SolverType' of 'Fixed-step'.

Frequently Asked Questions about simulating-simulink-models

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

FAQPage Schema
How do I run Simulink models programmatically for data exploration?

You can run Simulink models programmatically by executing them with the sim() function using SimulationInput and SimulationOutput objects, enabling custom data exploration and analysis.

Can I perform parameter sweeps on a control system model in Simulink?

Yes, you can perform parameter sweeps on a control system model in Simulink by configuring SimulationInput objects to batch simulate various parameters and analyze performance results.

Do I need Simulink installed to execute batch simulations programmatically?

Yes, you need Simulink installed because executing batch simulations programmatically relies on the Simulink engine to run models and generate analysis data.

What is the best way to automate custom analysis on Simulink simulation results?

The best way to automate custom analysis on Simulink simulation results is to use the sim() function to execute models and process the SimulationOutput data for parameter sweeps.

How do I configure StopTime and SolverType when simulating Simulink models?

To configure StopTime and SolverType when simulating Simulink models, set parameters like StopTime to '10' and SolverType to 'Fixed-step' within your programmatic SimulationInput configuration.