From: asdafa on 27 Oct 2009 23:44 "Clement Lim" <clementlim(a)singnet.com.sg> wrote in message <h7be53$kjl$1(a)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!
|
Pages: 1 Prev: read large text files Next: Getting data from a C++ program into simulink |