The function specifies that the matrix must be square (same number of rows and columns) and you have to input the number of rows (or columns). Are you sure that the number of rows you are inputting is correct and that the input matrix is square?
Best Regards,
Chris Matthews
National Instruments