1 759.500000000000
2 779.500000000000
3 779.500000000000
4 779.500000000000
5 958.167000000000
6 958.167000000000
7 958.167000000000
8 958.167000000000
9 958.167000000000
10 1048.10000000000
11 1048.10000000000
Here is my sample matrix. For example, the value 779.500 repeated 4 times, while the value 958.1670 repeated 5 times. I want to find the first consecutive repeating value in the 2nd column of the matrix and transfer it to a new matrix as a row. After transferring, it should be seen as following;
1 759.500000000000
5 958.167000000000
10 1048.10000000000
Could you help me how can I do this?

 Respuesta aceptada

Matt J
Matt J el 4 de Dic. de 2021
Editada: Matt J el 4 de Dic. de 2021

Más respuestas (0)

Categorías

Más información sobre Agriculture en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 4 de Dic. de 2021

Comentada:

el 4 de Dic. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by