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:
errors.png
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 commentaire

Jan
Jan le 21 Juin 2019
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?

Connectez-vous pour commenter.

Réponses (0)

Commenté :

Jan
le 21 Juin 2019

Community Treasure Hunt

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

Start Hunting!

Translated by