audio signal in spectrogram
30 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Gokul
le 7 Mar 2013
Réponse apportée : UMAIR RASOOL
le 1 Août 2020
Hello,
How to apply window function for a audio signal in spectrogram and compare it with the one without applying window function ?
Réponse acceptée
Wayne King
le 7 Mar 2013
Modifié(e) : Wayne King
le 7 Mar 2013
You can supply the window argument as a vector.
Signal
t=0:0.001:2;
x=chirp(t,0,1,150);
Now to find the short-time Fourier transforms
% without a window
win = ones(200,1);
[S,F,T] = spectrogram(x,win,100,200,1000);
% with a hamming window
win = hamming(200);
[Swin,Fwin,Twin] = spectrogram(x,win,100,200,1000);
3 commentaires
Wayne King
le 8 Mar 2013
[S,F,T] = spectrogram(x);
is not without a window. If you read the documentation, you'll see that syntax uses a Hamming window.
I've shown you how to not use a window function above. Use a vector of ones, or rectwin()
Plus de réponses (1)
UMAIR RASOOL
le 1 Août 2020
close all
clear all
clc
[y,Fs]=audioread('black_hole.mp3');
windowSize = 256;
windowOverlap = [];
freqRange = 0:Fs;
spectrogram(y(:,1), windowSize, windowOverlap, freqRange, Fs, 'xaxis');
0 commentaires
Voir également
Catégories
En savoir plus sur Time-Frequency Analysis dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!