signal processing - Smooth surf plot of spectrogram in Matlab -


i want 3d spectrogram have done far.

urlwrite('http://goo.gl/d1uan','sample.wav'); %reads web , saves wav file in local folder name sample.wav %this might not save file if please download file link  [w,fs]=wavread('sample'); %[w,fs]=wavread(filename);  [~,~,t,p]=spectrogram(w(:,end),200,200/2,256,fs); %[~,~,t,p]=spectrogram(w(:,end),tres,tres/2,fres,fs); i=flipud(-log(p)); % image of spectrogram in 2d matrix  % want plot spectrogram in 3d h = surf(i.*-1); set(h, 'edgecolor','none');  %this job blocky want smooth 

if increase overlap, smoother:

[~,~,t,p]=spectrogram(w(:,end),200,199,256,fs); 

but take longer calculate. that's trade-off.


Comments