ISMATRIX Test For a 2D Matrix

Section: Inspection Functions


This function tests to see if the argument is a matrix. The syntax for ismatrix is
   x = ismatrix(y)

and it returns a logical 1 if the argument is size N x M or M x N and a logical 0 otherwise.