Azzera filtri
Azzera filtri

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

2 visualizzazioni (ultimi 30 giorni)
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.

Risposte (0)

Categorie

Scopri di più su Time-Frequency Analysis in Help Center e File Exchange

Prodotti


Release

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by