I want to create a matrix according to this logic:
Let's say I have a base vector like [1 2 3 4 5 6]'. First I want to replicate it 4 times each time increasing by 10. So after this step I will have
[1 2 3 4 5 6 11 12 13 14 15 16 21 22 23 24 25 26 31 32 33 34 35 36 41 42 43 44 45 46]'
and then I want to take this column and replicate it 20 times (my bad I meant 19 new copies), each time increasing by 1. So the next column would be
[2 3 4 5 6 7 12 13 14 15 16 17 22 23 24 25 26 27 32 33 34 35 36 37 42 43 44 45 46 47]'
and so on
I can't find a way to do this. I want the implementation to be vectorized, I don't want to use for loops.
Best Answer