function r = repmat(p,varargin) r=p; for iFace=1:r.nFaces; iF=num2str(iFace); eval(['r.f' iF '=repmat(p.f' iF ',varargin{:});']); end;