using matrix dynamique as required gives an error message