Plot matrix and vectors in 3D

2 Ansichten (letzte 30 Tage)
Reza
Reza am 12 Dez. 2019
Kommentiert: Walter Roberson am 12 Dez. 2019
I use the following command per MATLAB example to calcualte Short-Time Fourier Transform:
[s,f,t] = stft(x,fs,'Window',hamming(2205,'periodic'),'OverlapLength',1980,'FFTLength',2205);
My question is how can I plot the data similar to the way MATALB itself plots using when we don't specfiy the output vectors. I want to plot "s" and "f" as a function of another signal (instead of "t") but am not sure how to reprocude plots that MATLAB automatically generates with "stft".
One example is given below. Note that "s" has real and imaginary parts.
  1 Kommentar
Walter Roberson
Walter Roberson am 12 Dez. 2019
The undocumented function signalwavelet.internal.convenienceplot.plotTFR is used to do the plotting. For the main part of the plot, that does an imagesc() of 20*log10(abs(S)+eps) with x position T and y position F

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Color and Styling finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by