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.
引用格式
Manu R (2024). GROUPFIND (https://www.mathworks.com/matlabcentral/fileexchange/1498-groupfind), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
创建方式
R12.1
兼容任何版本
平台兼容性
Windows macOS Linux类别
在 Help Center 和 MATLAB Answers 中查找有关 Data Distribution Plots 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!