audio signal in spectrogram

Illustration
Gokul - 2021-12-13T11:15:45+00:00
Question: audio signal in spectrogram

    Hello,   How to apply window function for a audio signal in spectrogram and compare it with the one without applying window function ?

Expert Answer

Profile picture of Neeta Dsouza Neeta Dsouza answered . 2025-11-20

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);

 


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!