How do I get rid of the horizontal line on the y-axis in a line plot? Please see attached image below as an example. I want the horizontal line hidden.
조회 수: 6 (최근 30일)
이전 댓글 표시

댓글 수: 5
Dyuman Joshi
2023년 1월 6일
There might be a repetition in the data that causes this line.
Are the first and the last values same? If yes, remove the last data.
Otherwise, refer to Star Strider's answer
채택된 답변
Star Strider
2023년 1월 6일
Since:
[x1,fs1]=audioread('Aniruddha heart beat.wav');
and
x1 = 962560*2
the red line is likely the second channel in ‘x1’ so:
y = x1(:,1);
plot(t1,y)
might be the solution.
.
댓글 수: 0
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!