The DIM() and N Rows() functions work on both data tables and matrices, but it is not listed under the collection of Matrix functions in the Scripting Index (but N Cols() is listed there). It would be good if all the matrix dimension tools are listed under the Matrix collection of functions.