Install any skill in seconds. Free to start, no credit card required.
Get Started Free →matlab/simulink-linearize
Linearize Simulink models.
Passed 24 of 25 test cases with the skill, and 13 of 25 without it.
and 10 more in the full report
11 fixed13 passed either way1 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 11 test cases the skill fixed. Same model, same prompt, with and without the skill.
I am generating an LPV system from an array of linearized state-space models 'sysArray' obtained from Simulink model 'engine_map'. The parameter grid was varied manually without using the linearize params argument. Write a MATLAB script to assign the SamplingGrid property on the state-space array for parameter 'rpm' with values [1000, 2000, 3000] and construct the LPV interpolant.
| Checked | Without skill | With skill |
|---|---|---|
| The script sets the SamplingGrid property on the state-space array. | Passed | Passed |
| The script calls ssInterpolant to construct the gridded LPV model. | Missed | Passed |
The instructions your model reads when the skill loads.
Extract linear time invariant (LTI) or linear parameter varying (LPV) models from Simulink using linearize and related APIs from Simulink Control Design.
ssInterpolantsimulink-frequency-response for frestimate-based fallbackThe linearization pipeline has four stages. Not every task requires all stages.
1. Define I/O Points 2. Operating Point → 3. Linearize → 4. Debug
(root level/linio) (findop/operspec) (linearize) (advisor)
Determine I/O points using this decision sequence. Use the first case that applies:
Case A — IO points can be inferred from prompt or model context:
Use the first sub-case that matches:
linio points. All linio points must reference a block's output port. If a candidate block has no output ports (Outport, Terminator, Scope) → trace upstream to find the source block and port with model_read.
io = [linio(sprintf("%s/InputBlock", mdl), 1, "input"); ...
linio(sprintf("%s/OutputBlock", mdl), 1, "output")];
test cases passed, vs 13 / 25 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.