Extracting X axis and Y axis data from spectrogram figure
조회 수: 6 (최근 30일)
이전 댓글 표시
How to get the x axis and y axis data from the spectrogram figure or plot. The code that I use ,
b=openfig('spec.fig');
h = findobj(gca,'Type','line')
x=get(h,'Xdata');
y=get(h,'Ydata');
.I need time and frequency data from X axis and Y axis but I get empty values in both x and y. Kindly suggest a solution for this. Thanks...
댓글 수: 0
답변 (1개)
Rohit Kumar
2019년 4월 1일
편집: Rohit Kumar
2019년 4월 1일
Spectrogram doesn't give you "Plot Lines" on axes. What you get is an "Image".
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Spectral Measurements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!