measure event duration in spectrogram

How could one measure the duration of an event in seconds based on spectrogram data and related parameters (nfft, overlap, Fs) ?
I tried the following formula
real duration = [ calculated duration /(1-overlap)*nfft ] * Fs
but it seems something is not exactly right

Answers (0)

Categories

Asked:

LO
on 11 Apr 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!