simulating-simulink-models
Runs Simulink models programmatically for data exploration, parameter sweeps, and custom analysis using sim() with SimulationInput/SimulationOutput. Use when calling sim(), parsim, setExternalInput, setModelParameter, setVariable, or accessing logsout — any task producing simulation results for analysis (not pass/fail tests).
npx skills add matlab/simulink-agentic-toolkit --skill simulating-simulink-models --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Simulating Simulink Models with the sim Command Use this skill to generate simulation results for analysis. For persistent, reusable pass/fail behavioral testing (especially of individual subsystems), use `testing-simulink-models` instead. ## When to Use - Running a Simulink model from a MATLAB script - Configuring simulation parameters (StopTime, solver, etc.) programmatically - Passing input signals to root-level Inport blocks - Accessing logged signal data after simulation - Running parameter sweeps or batch simulations ## When NOT to Use - Writing declarative Gherkin-based tests → use `testing-simulink-models` - Testing an individual subsystem or component → use `testing-simulink-models` (requires Simulink Test; auto-creates a harness, compiles only the subsystem — much faster than `sim()` which always compiles the entire model) ## Minimal working pattern Always simulate using `Simulink.SimulationInput` and `Simulink.SimulationOutput`: ```matlab in = Simulink.SimulationInput('MyModel'); in = in.setModelParameter('StopTime', '10'); out = sim(in); ``` ## Setting parameters Use `SimulationInput` methods to configure the simulation: ```matlab % Model-level parameters (StopTime, S
- When to Use
- When NOT to Use
- Minimal working pattern
- Setting parameters
- Input signals
- Discovering logged data
- Accessing logged data
- Multiple simulations
- Parallel simulation (parsim)
- Guardrails
What does the simulating-simulink-models skill do?
Runs Simulink models programmatically for data exploration, parameter sweeps, and custom analysis using sim() with SimulationInput/SimulationOutput. Use when calling sim(), parsim, setExternalInput, setModelParameter, setVariable, or accessing logsout — any task producing simulation results for analysis (not pass/fail tests).
How do I install it?
Run `npx skills add matlab/simulink-agentic-toolkit --skill simulating-simulink-models --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From matlab/simulink-agentic-toolkit, a repository with 903 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
