corrected_data = deleteat!(x, errors) should be what you're looking for. Alternately, a more functionally pure way to do it is to compute the good indices and then just do corrected_data = x[good_idx], though this will make a copy of those elements of x.
On Sunday, February 22, 2015 at 3:14:11 PM UTC-5, Aero_flux wrote: > > Hello everybody, > > I might be going about this the wrong way. I have a sequence of data in a > 1-D array "x". Now I have done some calculations and have a 1-D array of > the indexed points in "x" that erroneous. What I would like to to is remove > all the data points in "x" that uses the saved indices. I figured I would > use corrected_data = splice!(x, errors) but of course it won't take arrays. > Any hints? > > Many thanks >
