MATLAB: I want to plot frequency vs time from the sound data(i.e. column data). I am not able to do it. Please please help. the specgramdemo function when run give at what time what frequency is present, but i want that it should return mtrx frequency vs t

spectrogram

If i use the spectrogram function, it plots the spectrogram i.e. it plots frequency vs time but, i am not able to extract that information in to matrix. Please help.

Best Answer

spectrogram returns matrices containing the complex-valued short-time Fourier transform and the short-time periodograms.
See the help for spectrogram for examples.
Related Question