I would like to 'convert' a 1D array to a 2D matrix considering the value inside the array as:
A = 1 3 5 4 3B = 1 3 5 4 3 0 3 5 4 3 0 3 5 4 3 0 0 5 4 0 0 0 5 0 0
Can you suggest a fast way to do that?
Best Answer