Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Extracts per-frame time, frequency, and time-frequency features from 1D signals using MATLAB Signal Processing Toolbox extractor objects.
45% 100%+55 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 10 of 22 without it.
I have configured a signal time feature extractor in MATLAB and tested it on my desktop. Now I need to generate standalone MATLAB code for C/C++ code generation. What function provided by the feature extractor API produces a codegen-compatible MATLAB function?
Recommends calling generateMATLABFunction.
3 of 3 safety checks passed
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 |
Next to this one in the catalogue, plus more from the same author.