about summary refs log tree commit diff
path: root/sourcecodes/bnt-master/KPMtools/myrepmat.m
blob: 830dbf41d418321fb3b6155c8004f4b6bc2a7c34 (plain)
1
2
3
4
5
6
7
8
9
function T = myrepmat(T, sizes)
% MYREPMAT Like the built-in repmat, except myrepmat(T,n) == repmat(T,[n 1])
% T = myrepmat(T, sizes)

if length(sizes)==1
  T = repmat(T, [sizes 1]);
else
  T = repmat(T, sizes(:)');
end