Example:
Define Constant Values
const1=10;
const2=4;
const3=6;
Create the 1D Vector with Constant Values, consider any rows number, here considering 5
col1=const1*ones(5,1);
col2=const2*ones(5,1);
col3=const3*ones(5,1);
Merge the all Columns
merge_mat=[col1,col2,col3];
Once the merge done, copy the same (five times) matrix in both ways horizantly and vertically
result=repmat(merge_mat,5)
More simpler, directly
const1=10;
const2=4;
const3=6;
result=repmat([const1,const2,const3],5)
More: If you want it to be repeated with specific shapes with the same matrix horizontally only
result=repelem([col1,col2,col3],1,5)