Noncommutative spaces from matrix models