Install any skill in seconds. Free to start, no credit card required.
Get Started Free →matlab/matlab-extract-signal-features
Extract features from 1D signals using signalTimeFeatureExtractor, signalFrequencyFeatureExtractor, and signalTimeFrequencyFeatureExtractor.
Passed 22 of 22 test cases with the skill, and 10 of 22 without it.
and 16 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.
In MATLAB, I am setting up a frequency feature extractor to measure the power bandwidth of a signal sampled at 10 kHz. I want to pass a 3 dB power attenuation parameter to setExtractorParameters. What parameter name should be passed to setExtractorParameters for the PowerBandwidth feature? Show the setExtractorParameters call.
| Checked | Without skill | With skill |
|---|---|---|
| Uses RelativeAmplitude as the parameter name in setExtractorParameters. | Missed | Passed |
The instructions your model reads when the skill loads.
Per-frame feature extraction for 1D signals using the three Signal Processing Toolbox extractor objects. Picks the right extractor, configures it with real parameters only, and adds a GPU code path when one is available.
fitcecoc, fitcnet, or any classifier / regressor.audioFeatureExtractor covers those — out of scope here.signalDatastore, labeledSignalSet, tall arrays. The per-file extraction is in scope; building the pipeline around it is not.pspectrum(x, fs, "spectrogram") look plus a per-frame MeanFrequency drift ratio (no Econometrics Toolbox needed; adftest/kpsstest are an optional supplement only). Use the verdict to pick the primary extractor — non-stationary signals favour signalTimeFrequencyFeatureExtractor; spectrally stationary signals lean on the frequency extractor. See references/preliminary-analysis.md. Then write down a ranked candidate feature list, spanning more than one domain for a classifier/regressor feature table, with one-line justifications tying each feature to an observed signal characteristic, before configuring the extractors. The verdict picks the primary extractor, not the only one — a set that collapses onto a single extractor is the most common cause of a weak downstream classifier. Example: "MeanFrequency — stationary harmonic, energy localized at known frequencies." See references/feature-ranking.md.SampleRate, FrameSize, and either FrameRate or FrameOverlapLength (not both). Enable feature flags as name-value pairs.setExtractorParameters for features/transforms that have them. Only signalFrequencyFeatureExtractor and signalTimeFrequencyFeatureExtractor support this method. The second argument can be a feature name OR a transform name. Before writing any setExtractorParameters call, open the matching reference file and copy the parameter name verbatim. Parameter names are not what you'd guess. The references are the source of truth.references/gpu-patterns.md.extract(sFE, x) on the signal. Output shape depends on FeatureFormat (matrix or table). src may also be a signalDatastore / audioDatastore, in which case extract returns one result per file (a cell array) and accepts UseParallel=true to process files on a parallel pool — use it whenever extracting over many files. For the input contract, the per-extractor output shape, datastore/parallel extraction, and how to combine outputs across extractors, see references/extract-function.md.fitcecoc, fitcsvm, tree ensembles). If the model consumes sequences (LSTM, 1-D CNN, transformer), keep the per-frame table as-is. If the user has variable-length signals and the downstream task is unclear, ask rather than assuming aggregation. See references/post-extraction-patterns.md.Stop and check the matching per-extractor reference before:
signalTimeFrequencyFeatureExtractor — each Transform supports a different subset.setExtractorParameters — parameter names differ per feature and per transform.Transform value not already shown in this file's patterns. If it isn't in the per-extractor reference, it doesn't exist on the object.| User wants | Use |
|---|---|
| Time-domain features (amplitude, energy, shape factors) | signalTimeFeatureExtractor |
| Frequency-domain features (spectral location, power, bandwidth, PSD) | signalFrequencyFeatureExtractor |
| Time-frequency features (spectral shape, instantaneous, ridges, wavelet, EMD-derived) | signalTimeFrequencyFeatureExtractor |
test cases passed, vs 10 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.