Skills

Authoring Simulink Inputs

Synthesize new waveforms from scratch for Simulink inports using createInputDataset.

Install

npx skills add matlab/simulink-agentic-toolkit --skill authoring-simulink-inputs -g -a claude-code -y
Category
Documents
Updated
6d ago
License
See repository
Context cost
Mediumabout 2,037 tokens
Runs scripts
No, instructions only

What it does

Synthesize new waveforms from scratch for Simulink inports using createInputDataset. Use ONLY when the user asks to generate, create, or synthesize signals (step, ramp, sine, chirp, pulse, noise) to populate a Dataset for External Inputs or Signal Editor. Covers timeseries and timetable formats with correct data type, interpolation, units, and dimensions. Also covers function-call and trigger inport timing setup. Do NOT use when the user wants to load, import, or read existing data from files (MAT, CSV, spreadsheet), even if that data will be used as model input. Do NOT use for running simulations or plotting outputs.

Author Input Signals

Create populated input signal datasets for Simulink models using createInputDataset as the scaffold, then populating with meaningful waveforms while preserving all signal metadata.

When to Use

  • User asks to generate or create synthetic waveforms (step, ramp, sine, chirp, pulse, noise, constant) for a model's inports
  • User wants to populate a Dataset created by createInputDataset with meaningful signal data
  • User needs signals for Signal Editor scenarios
  • User describes desired input signal behavior in natural language (e.g., "ramp from 0 to 10", "sine at 5 Hz")
  • User wants timetable-based input signals for inports
  • User needs to set up function-call timing or configure trigger/enable inport signals
  • User wants to replace zero-filled scaffold data with realistic waveforms

When NOT to Use

  • User wants to simulate the model, run it, or plot outputs, use simulating-simulink-models instead. This skill only creates input data; it never runs sim() or produces plots.
  • User wants to load, import, or read data from existing files (CSV, MAT, spreadsheet, .mat workspace), even if the destination is a model inport. This skill generates new synthetic waveforms from scratch; it does not read or convert existing recorded/measured data.

Output

This skill produces:

  1. MATLAB code, a local function that generates and returns the Dataset (reproducible, editable, keeps workspace clean)
  2. Dataset variable (ds), populated Simulink.SimulationData.Dataset in the base workspace, ready for simulation
  3. Summary, brief description of each element: name, data type, waveform shape, and value range

To simulate with the Dataset, follow the simulating-simulink-models skill workflow (SimulationInput → setExternalInput → sim).

Must-Follow Rules

Read the whole SKILL.md on GitHub

More in Documents