- The MATLAB dbscan function returns an array idx, containing the value that represents the cluster (cluster label) for each index or point in the input dataset.
- The points which are outliers may be represented by -1 label, and you can easily locate those with the find() function.
- Finally you can remove the outliers in the dataset like this.