a = kron(1:9, repmat(1, 1, 9)); b = repmat(1:9, 1, 9); c = a.*b; fprintf('%d * %d = %2d\n', [a; b; c])