Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: how to create waterfall plot
Date: Wed, 28 Oct 2009 03:44:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 27
Message-ID: <hc8em2$1e8$1@fred.mathworks.com>
References: <h7be53$kjl$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 1256701442 1480 172.30.248.35 (28 Oct 2009 03:44:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 28 Oct 2009 03:44:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2063494
Xref: news.mathworks.com comp.soft-sys.matlab:580511


"Clement Lim" <clementlim@singnet.com.sg> wrote in message <h7be53$kjl$1@fred.mathworks.com>...
> 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!

Hi, sorry to use your post..I don't know how to crete one..really sorry
I have a problem with your code:
> >> [filename, pathname] = uigetfile('*.*', 'Pick any file');
> >> [y, fs, nbits] = wavread(filename);
> >> spectrogram(y);
I make it run but says:

??? Error using ==> spectrogram at 113
X must be a vector (either row or column).
Error in ==> spec at 3
spectrogram(y);

Can anyone help me with this please, im new in this.
thanks for your help!