Stable input of matirx values