Noncommutative geometry and matrix models