GROUPFIND

Version 1.0.0.1 (1.92 KB) by Manu R
Find groups of data from a vector.
2.3K Downloads
Updated 1 Sep 2016

View License

Extract groups of data from a vector. For example:
x=[0 1 2 2 1 0 -1 1 3 5 3];
groupfind(x>0)
ans =

2 5
8 11

In this case, the first group is from indices 2 to 5 and the second is from indices 8 to 11.

Cite As

Manu R (2026). GROUPFIND (https://www.mathworks.com/matlabcentral/fileexchange/1498-groupfind), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R12.1
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Data Distribution Plots in Help Center and MATLAB Answers
Version Published Release Notes
1.0.0.1

Updated license

1.0.0.0