remove points in a figure that are close to 0 vertical line
조회 수: 3 (최근 30일)
이전 댓글 표시
Say I have:
X = [0 0.5 0.12 0.54 0.21 0.21 0.12 0.32 37 30 39 50 42]'
Y = [134 423 352 212 545 234 184 563 323 123 485 182 493]'
plot(X,Y,'g')
I want to remove points that are less than 'n' from the plot for X
Say n = 20, so points that are less than 20 in matrix X will be removed from the plot.
댓글 수: 0
답변 (1개)
Mathieu NOE
2021년 1월 29일
hi
as simple as this :
X = [0 0.5 0.12 0.54 0.21 0.21 0.12 0.32 37 30 39 50 42]'
Y = [134 423 352 212 545 234 184 563 323 123 485 182 493]'
n = 20;
ind=find(X>n);
plot(X(ind),Y(ind),'g')
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!