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.
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 Comment
Direct link to this comment:
http://www.mathworks.com/matlabcentral/answers/34151#comment_71286
MATLAB does not have any pointer data type.