Filter löschen
Filter löschen

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

2 Ansichten (letzte 30 Tage)
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.

Antworten (0)

Kategorien

Mehr zu Time-Frequency Analysis finden Sie in Help Center und File Exchange

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by