I have the following values:
A = [1 2 3 4 5];
And want to use the following to denote frequency:
B = [1 1 3 3 3];
Is there a way I can do this to yield the following:
C = [1 2 3 3 3 4 4 4 5 5 5];
MATLAB
A = [1 2 3 4 5];
B = [1 1 3 3 3];
C = [1 2 3 3 3 4 4 4 5 5 5];
Best Answer