% fpoints.m function fp = fpoints(dim,len, pos) fp = randn(dim,len); for d=1:dim, fp(d,:) = fp(d,:) + pos(d); end;