pointers
18 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentar
Akzeptierte Antwort
Titus Edelhofer
am 1 Apr. 2012
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
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!