Skip to content

matlab/matlab-agentic-toolkit / skills-catalog/signal-processing/matlab-analyze-time-frequency-content

matlab-analyze-time-frequency-content

Unverified

Perform time-frequency analysis in MATLAB using CWT, STFT, synchrosqueezing, reassignment, wavelet coherence, cross spectrogram, EMD/VMD, multiresolution analysis, and time-frequency filtering. Triggers on: time-frequency, spectrogram, scalogram, cwt, stft, istft, fsst, wsst, wcoherence, xspectrogram, modwt, modwtmra, modwpt, emd, vmd, hht, tffilt, dgt, gabor, instantaneous frequency, synchrosqueezing, reassignment, ridge extraction, wavelet coherence, cross spectrum, mode decomposition, signal decomposition, time-frequency filtering.

scripts/illustrateTransientLocalization.m

View on GitHub
function illustrateTransientLocalization()
%illustrateTransientLocalization Compare wavelet time localization.
%   illustrateTransientLocalization() creates an impulse signal and plots
%   finest-scale CWT coefficients for Morse (low TB), amor, and bump
%   wavelets to show the time localization trade-off.

Fs = 100;
N = 1000;
t = (0:N-1) / Fs;
signal = zeros(1, N);
signal(500) = 1;

[cfsMorse, ~] = cwt(signal, "Morse", Fs, TimeBandwidth=15);
finestMorse = abs(cfsMorse(1, :));

[cfsAmor, ~] = cwt(signal, "amor", Fs);
finestAmor = abs(cfsAmor(1, :));

[cfsBump, ~] = cwt(signal, "bump", Fs);
finestBump = abs(cfsBump(1, :));

finestMorse = finestMorse / max(finestMorse);
finestAmor = finestAmor / max(finestAmor);
finestBump = finestBump / max(finestBump);

figure
tiledlayout(3, 1, TileSpacing="compact", Padding="compact")

nexttile
plot(t, finestMorse, "b", LineWidth=1.2)
ylabel("|CWT|")
title("Morse, TimeBandwidth = 15 (Best Time Localization)")
xlim([3 7])
grid on

nexttile
plot(t, finestAmor, "r", LineWidth=1.2)
ylabel("|CWT|")
title("Analytic Morlet / amor (Good Time Localization)")
xlim([3 7])
grid on

nexttile
plot(t, finestBump, Color=[0.5 0 0.8], LineWidth=1.2)
xlabel("Time (s)")
ylabel("|CWT|")
title("Bump (Worst Time Localization - Compact in Frequency)")
xlim([3 7])
grid on
end

% Copyright 2026 The MathWorks, Inc.
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 197kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall