There are four commands for creating matrices interactively: mat, poly, ideal and sparse. These prompt the user for input polynomials. The resulting matrix for each of these commands has the current ring as its base ring.