What problem does it solve?
Choosing the right spectral estimator in MATLAB is error-prone: users confuse PSD with power spectrum, misuse manual FFT normalization, pick wrong windows, and get misleading peaks from noise or sidelobe masking. This Skill guides AI agents to select, compute, and verify spectral analyses correctly using Signal Processing Toolbox functions.
Core Features & Use Cases
- Estimator Selection Guidance: Decision trees and preliminary data diagnostics (sampling type, signal length, spectral flatness, AR fitness) to choose between pspectrum, pwelch, periodogram, pmtm, pburg, pmusic, rootmusic, plomb, and poctave.
- Spectral Measurements: Built-in functions for band power, occupied bandwidth, peak detection with noise-floor-relative thresholds, SNR, THD, SFDR, and spectral shape descriptors.
- Streaming Spectral Analysis: Patterns for spectrumAnalyzer, dsp.SpectrumEstimator, and dsp.CrossSpectrumEstimator for frame-by-frame real-time processing.
- Use Case: A user provides a vibration signal and asks for its frequency content. The Skill runs preliminary diagnostics, recommends pwelch for the wideband signal, computes the PSD with proper windowing, detects peaks above the noise floor, and verifies results with Parseval's theorem.
Quick Start
Ask the agent to analyze the frequency content of your signal, for example: compute the power spectral density of my signal x sampled at 1000 Hz and find the dominant spectral peaks.