usage [locs_n,inds]=select_chans(locs,nin) selects a sparse subset of locations, such the selected locations are as equally distributed as possible input: locs: locations of sensors (2D or 3D), each row is the location of one sensor nin: number of desired channels output: locs_n: selcted locations inds: indices of selected locations