WUT_Computer_Science/ENUME/projectA/checkIfMatrixIsSquareMatrix.m

5 lines
151 B
Mathematica
Raw Normal View History

function checkIfMatrixIsSquareMatrix(Matrix)
[Rows,Columns] = size(Matrix);
if Rows ~= Columns
error ('Matrix is not square matrix!');
end % end if