pointers

14 ビュー (過去 30 日間)
mallikarjun
mallikarjun 2012 年 4 月 1 日
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 日
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 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by