This function calculates boundary indexes of clusters of 1’s.
c = clustersegment(s)
scalar, vector or matrix of real numbers (clusters of 1s)
output variable, cell array of size 1 by N, where N is the number of rows in s
This is an Octave function. This function calculates boundary indexes of clusters of 1’s. This function calculates the initial and end indices of the sequences of 1's present in the input argument. The output variable c is a cell array of size 1 by N, where N is the number of rows in s and each element has two rows indicating the initial index and end index of the cluster of 1's respectively. The indexing starts from 1.