Design and implement adaptive filters using DSP System Toolbox System objects.
SkillScore100Maintained
Automatic
◆Coding pack
Last verified 8/16/2026
What it changes
Passed 21 of 21 test cases with the skill, and 12 of 21 without it.
Without skill59%
With skill100%
Checks it passed that the model alone missed
Calculates step size using maxstep on the adaptive filter object.
Controls adaptation freezing using the LockCoefficients property.
Extracts filter time-domain weights using IFFT on FFTCoefficients.
and 12 more in the full report
9 fixed13 passed either way0 still failing0 broke
Pass-rate lift
+41 pp
Tokens
+82%
Agent turns
0%
Response time
-27%
Model gemini-3.6-flashMeasured 8/16/2026v122 of 22 cases passed with skill · 21 comparable
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 8 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 8
Prompt
I have legacy MATLAB code from R2017b that calls `h = adaptfilt.nlms(32, 0.1); [y, e] = filter(h, x, d);`. This code fails in modern MATLAB R2022b. Refactor this snippet into modern syntax that works in current MATLAB releases without using deprecated functions.
What was checked, without and with the skill
Checked
Without skill
With skill
Replaces adaptfilt.nlms with dsp.LMSFilter configured with Method set to 'Normalized LMS'.
Missed
Passed
Executes the filter using System object step syntax instead of calling filter().
Passed
Passed
case-06 · gemini-3.6-flash · 8/16/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md228 lines9 files
Adaptive Filtering
Implementation guideline — Use DSP System Toolbox System objects to implement adaptive filters. Do not implement manual weight-update loops.
When to Use
System identification — Model unknown FIR or IIR systems online
Noise or interference cancellation — Recover signals from noise-corrupted measurement
Echo cancellation — Suppress acoustic or line echo
Active noise control — Feedforward ANC with secondary path
Inverse system identification — Equalization and deconvolution
Adaptive prediction — Linear prediction and speech coding
Bandpass, lowpass, bandstop filter design — hairpin, coupled-line, combline, stub, SIW for frequency selection and harmonic rejection. TRIGGER: user asks to design, create, or analyze any RF filter (bandpass, lowpass, highpass, bandstop, hairpin, coupled-line, combline, stub, SIW). Invoke BEFORE writing code — filter class names differ from what you would guess. SKIP: EM simulation/S-parameter extraction of an existing filter (use matlab-analyze-em), general PCB layout assembly (use matlab-assem