I have a set e.g.,
set={[1],[1,2,3],[1,2,3],[1]}
However, I need to repeat [1,2,3,..] several times. Lets say I have [1:r] and need repeat the same for n times. Then, it should be in the following form:
set={[1],[1,2,..r], ... ,[1,2,..r],[1]}
I tried to use
repmat([1:3],1,3)
% 1 2 3 1 2 3 1 2 3
which has repeated elements but in the same array. I need it as 3D format.