Thread Subject: need help in surf function

Subject: need help in surf function

From: Clement Lim

Date: 1 Oct, 2009 13:03:03

Message: 1 of 1

Hi All,

I had the below code to read an audio wav file. I would like to create surf plot using the data in this audio wav file. However, when i run the below code, the code can only plot the spectrogram. Can anyone advise me where did i go wrong? tks alot


[filename, pathname] = uigetfile('*.*', 'Pick any file');
[y, fs, nbits] = wavread(filename);
[S,F,T,P] = spectrogram(y);
surf(T,F,10*log10(abs(P)),'edgecolor','none')
colormap(jet); axis tight;
view(0,90);
xlabel('Time'); ylabel('Hz');

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com