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.

1 件のコメント

Walter Roberson
Walter Roberson 2012 年 4 月 1 日
MATLAB does not have any pointer data type.

サインインしてコメントする。

 採用された回答

Titus Edelhofer
Titus Edelhofer 2012 年 4 月 1 日

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

1 件のコメント

mallikarjun
mallikarjun 2012 年 4 月 1 日
hi Edelhofer
thank for your answer.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Image Processing Toolbox についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by