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

3 次查看(过去 30 天)
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.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by