如何统计一个数组中的元素序列分布?。
Show older comments
比如一串111111122111121111331111333的向量,我想统计它里面1,2,3的序列结构,比如:
1:1111111有1个,1111有3个;
2:22有1个,2有1个;
3:33有2个。
现有一串2000位的由1,2,3组成的数组,有什么函数可以实现呢?
Accepted Answer
More Answers (0)
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!