Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Thread Subject:

Subject: Spectrogram

From: Matthew

Date: 22 Jan, 2013 17:25:09

Message: 1 of 2


I'm trying to write my own spectrogram function.

Would something along the lines of:


work well? the fftc is pretty much just a fourier transform, E is my input data and G is just a gaussian function that I'm using as a gating function. I plan on altering the width of the Gaussian later on to help with a more usable spectrogram, but would this type of code actually give me a spectrogram?


Subject: Spectrogram

From: Sadik

Date: 22 Jan, 2013 23:30:14

Message: 2 of 2

Hi Matthew,

If I know it correctly, you need to use overlapping windows of data, each of which will be windowed with a Hamming window or so to avoid Gibbs ringing. The fourier transform of these windows will then be put into columns and the resulting matrix will be displayed.

If you have not already, you may want to google short-time fourier transform [STFT] in the context of speech processing.


Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us