Thursday, June 3, 2010

Matlab: repcell

There is a repmat function in Matlab, why isn't there a repcell function?

Oh well, this is practically repcell:
num2cell(repmat(value,dim1,dim2));

No comments:

Post a Comment