Install any skill in seconds. Free to start, no credit card required.
Get Started Free →matlab/simulink-frequency-response
Estimate frequency response from Simulink models using frestimate.
Passed 22 of 22 test cases with the skill, and 10 of 22 without it.
and 12 more in the full report
12 fixed10 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 12 test cases the skill fixed. Same model, same prompt, with and without the skill.
I need to construct a `linio` array for model `robot_arm` where the output measurement point requested by the user is the root-level Outport block `robot_arm/Position_Out`. Outport blocks do not have output ports. Write a MATLAB snippet showing how to define the output `linio` point.
| Checked | Without skill | With skill |
|---|---|---|
| Defines the linio output point on the output port of the upstream source block feeding `robot_arm/Position_Out`. | Missed | Passed |
The instructions your model reads when the skill loads.
Obtain frequency response data from Simulink models using simulation-based estimation (frestimate) when analytical linearization is not viable or as a validation tool.
linearize — use simulink-linearize instead1. Define I/O → 2. Choose Signal → 3. Configure → 4. Estimate → 5. Fit (optional)
(linio) (PRBS/Sinestream) (constraints) (frestimate) (tfest)
Determine I/O points for the estimation 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:
User specifies explicit I/O signals or blocks (e.g., "from r to y") → define 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")];
Root-level Inport/Outport blocks exist → use model_read at root scope (depth "0") to identify root-level Inport/Outport blocks, then define linio at those blocks (trace Outport blocks upstream to their source for the output linio point).
Case B — Cannot determine IO points:
test cases passed, vs 10 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.