Effacer les filtres
Effacer les filtres

Is there a way I can plot on top of the output spectrogram from using the 'stft' function?

2 vues (au cours des 30 derniers jours)
I know you can use 'uistack' but I'm having trouble assigning the STFT to a variable as for 'uistack' you need something like:
uistack('h',top)
Where h is the plot.
At the end of my code I run:
stft(x,1000,'FFTLength',4096)
But in order to do 'uistack' I need to save this as a variable, however assigning a variable just outputs the values as opposed to the plot itself.
If I instead try:
[S, F, T] = stft(x,1000,'FFTLength',4096);
surf(s, f, t, 'edgecolor', 'none')
Then I'm told that for the function 'surf', s, f or t can't be complex. I get similar errors trying to use other types of plots as well.

Réponses (0)

Catégories

En savoir plus sur Time-Frequency Analysis dans Help Center et File Exchange

Produits


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by