pointers
14 ビュー (過去 30 日間)
古いコメントを表示
i arranged matrix or array in ascending order, how Establish a set of pointers P to address the start and end of each block of records that have same value.
採用された回答
Titus Edelhofer
2012 年 4 月 1 日
Hi,
use the function diff to find the jumps, i.e., the position where the difference is not zero:
p = find(diff(x)~=0);
Titus
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!