[grd, data] = ascii_grd(data, cols)
This Matlab function removes first all lines containing bad data in the specified column axes (this is carried out like an AND operator on all specified columns). It finds then all different points along these and returns them sorted in ascending order.
Data array with columnar data.
A vector specifying the column numbers to consider as grid axes.
Cell array with the column vectors of all different grid points found along each specified grid axis. These are sorted in ascending order.
The new data array with lines containing bad values along the specified grid axes removed.
Pierre Jaccard, Geophysical Institute, University of Bergen, 1999