Consider matrix A as follows:
A = [1112222233445];
I want to generate a sequence numbers and reset these numbers wherever the ID changed.
B = [1 12 13 11 22 23 24 25 21 32 31 42 41 5];
arraycell arraysfor loopif statementMATLABmatrix manipulation
A = [1112222233445];
B = [1 12 13 11 22 23 24 25 21 32 31 42 41 5];
Best Answer