how can I save erased plot data?
Mostra commenti meno recenti
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 Commento
Jan
il 21 Giu 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?
Risposte (0)
Categorie
Scopri di più su Annotations in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!