How to remove certain point from a plot?

조회 수: 15 (최근 30일)
asskicker
asskicker 2014년 11월 21일
댓글: Andrew Reibold 2014년 11월 21일
So I have a plot that shows some obvious outliers. I have identified those outliers value using the data cursor and there are three of them which are [3 29.03,17 25.21,23 57.49].
Now how do I remove them from my plot?
I know I can store the remaining good data into a new variable and plot them again, but how do I do that exactly?
Thanks!

답변 (1개)

Image Analyst
Image Analyst 2014년 11월 21일
yourData([3,17,23],:) = []; % Remove these rows.
plot(yourData); % Replot with updated data.
  댓글 수: 1
Andrew Reibold
Andrew Reibold 2014년 11월 21일
It's always great seeing answers that are better solutions or more concise than what I was about to post :)
Still learning...

댓글을 달려면 로그인하십시오.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by