matrix - Matlab Repeat Value -
i matrix:
a = [2 3 4 6 7 8 9 1 2];
i need change matrix into:
b = [2 3 4 6 7 8 9 1 2; 2 3 4 6 7 8 9 1 2; 2 3 4 6 7 8 9 1 2]
the output be:
b = 2 3 4 6 7 8 9 1 2 2 3 4 6 7 8 9 1 2 2 3 4 6 7 8 9 1 2
thank much...
repmat
, repelem
used repeating copies of array. case, can use either of these as: repmat(a,3,1)
or repelem(a,3,1)
Comments
Post a Comment