Path: news.mathworks.com!not-for-mail
From: "Clement Lim" <clementlim@singnet.com.sg>
Newsgroups: comp.soft-sys.matlab
Subject: how to create waterfall plot
Date: Sat, 29 Aug 2009 14:32:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 11
Message-ID: <h7be53$kjl$1@fred.mathworks.com>
Reply-To: "Clement Lim" <clementlim@singnet.com.sg>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1251556323 21109 172.30.248.35 (29 Aug 2009 14:32:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 29 Aug 2009 14:32:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1941466
Xref: news.mathworks.com comp.soft-sys.matlab:566949


Hi All,

I had the following script to read a .wav file and plot the spectrogram of the signal generated.

>> [filename, pathname] = uigetfile('*.*', 'Pick any file');
>> [y, fs, nbits] = wavread(filename);
>> spectrogram(y);

I would like to modify the code so that it can analyse and plot the music file both from .wav and from a music cd. Furthermore, I would also like to show a waterfall plot of the spectrogram. Can anyone help me or provide me with an example?

Thanks a million!