Data Cursors on Line Plot With Spectrogram Subplot
이전 댓글 표시
There seems to be a bug in the behavior of data cursors when both a line plot and spectrogram plot are used in the same figure window.
After creating a subplot containing a spectrogram, the data cursors for the line plot will show the x value, a time value, and the colorbar value.
clear
close all
clc
fs = 10e9;
t = (0:1/fs:250e-9);
y = sin(2*pi*500e6*t + 20*cos(2*pi*10e6*t));
subplot(2,1,1)
plot(t,y)
subplot(2,1,2)
spectrogram(y,128,64,128,fs)
I believe this bug also applies to all versions that use the new figure window styles.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!