Reputation: 13
I have the following code and I have plotted a 3D plot for the stft with respect to time, frequency and amplitude. How do I change the black color seen in the plot to white? I do not understand how to change the black color to white in colormap option
[ss,ff,tt,pp]= spectrogram(x_dc,128*2,60,128*2,Fs);
figure,surf(tt,ff,abs(ss))
Upvotes: 0
Views: 290
Reputation: 18177
figure,surf(tt,ff,abs(ss), 'EdgeColor', 'none')
That 'black colour' you see are probably the borders of each cell. Don't show them using the 'EdgeColor', 'none'
name-value pair.
Upvotes: 2