How can I superimpose data on a spectrogram

How can i superimpose the line of the SO power signal on to the powerspectrum ?
This is how i tried it:
hold on
imagesc(log(flip(PXX_a{1,1})))
space=linspace(1,size(sleepstage{1,1},1),5);
set(gca,'xtick',[space],'xticklabel',[0:5])
xlabel('Time','FontSize',20)
yyaxis left
ylabel('Powerspectrum','FontSize',20)
set(gca,'fontsize',20);
plot(pow2db((PXX_a{1,1}(1,:))))
yyaxis right
ylabel('SO power','FontSize', 20)
hold off

답변 (0개)

카테고리

도움말 센터File Exchange에서 Time-Frequency Analysis에 대해 자세히 알아보기

질문:

2021년 5월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by