How can I plot spectrogram without using function "spectrogram"?

124 views (last 30 days)
Hello I've got a signal which depends on three variables. I want to plot a draft like draft using function "spectrogram" (2D draft with three axes, third axis is displayed with color). I don't want to use this function, because before plotting it processing a signal, but I have alredy processed signal. Thank you for your future help.
Best regards, Andrew

Accepted Answer

Wayne King
Wayne King on 4 Nov 2012
To replicate the plotting behavior of spectrogram.m, use surf()
z = randn(100,100);
t = 1:100;
x = 1:100;
axis xy; axis tight; colormap(jet); view(0,90);

More Answers (1)

Andrew on 5 Nov 2012
Thank you very much!


Find more on Time-Frequency Analysis in Help Center and File Exchange


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!