how can I save erased plot data?
이전 댓글 표시
I am plotting data after a loop and there is some error points in the plot.
for i=1:length(rto)
a1=(COP_LCS([rto(i,:)]:[rhs(i,:)],1));
a3=(COP_LCS([rto(i,:)]:[rhs(i,:)],3));
plot(a1,a3); axis 'equal'; hold on
end
COP_LCS= matrix of 40000x3; rto and rhs are indices of 123x1
I get this image:

I know how to brush the errors from the plot, but then how can I save it in the data and get a plot without erros?
댓글 수: 1
Jan
2019년 6월 21일
You did not mention, what you consider as "error points". We might be able to guess this detail, but you will know this for sure.
As soon as you can define this exactly, you have a mathematical tool already to find the peaks automatically. What about calculating the moving mean and replacing all points, which have a distance greater than 5 standard deviations from the surrounding points?
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!