Plot matrix and vectors in 3D

9 vues (au cours des 30 derniers jours)
Reza
Reza le 12 Déc 2019
Commenté : Walter Roberson le 12 Déc 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 commentaire
Walter Roberson
Walter Roberson le 12 Déc 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

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Color and Styling dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by