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 comentario

Walter Roberson
Walter Roberson el 1 de Abr. de 2012
MATLAB does not have any pointer data type.

Iniciar sesión para comentar.

 Respuesta aceptada

Titus Edelhofer
Titus Edelhofer el 1 de Abr. de 2012

1 voto

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 comentario

mallikarjun
mallikarjun el 1 de Abr. de 2012
hi Edelhofer
thank for your answer.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Image Processing Toolbox en Centro de ayuda y File Exchange.

Productos

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by