MATLAB: Create a matrix!

MATLABmatricesmatrixsort

Hello I have
row=[1 2];
col=[10 11 13 ];
I want to have b=[10 11 13; 10 11 13]
How can i do that?

Best Answer

repmat(col,2,1)
or
repmat(col,numel(row),1)