Generatingratings matrix