Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: how to create waterfall plot
Date: Sat, 29 Aug 2009 15:08:03 +0000 (UTC)
Organization: Universit&#228;tsSpital Z&#252;rich
Lines: 21
Message-ID: <h7bg8j$afj$1@fred.mathworks.com>
References: <h7be53$kjl$1@fred.mathworks.com> <h7berj$atl$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1251558483 10739 172.30.248.35 (29 Aug 2009 15:08:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 29 Aug 2009 15:08:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 11
Xref: news.mathworks.com comp.soft-sys.matlab:566953


"us "
> > 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!
> 
> a hint:
> 
>      help waterfall;

sorry, forgot the ...example... part...

     d=load('chirp');
     [ff,ff,tt,pxx]=spectrogram(d.y);
     subplot(2,1,1);
     spectrogram(d.y);
     subplot(2,1,2);
     arg={ff,tt,10*log10(abs([pxx.'])+eps)};
     waterfall(arg{:});
     colormap(jet(256));

us