I have the following code:
M=[1 2 3; 4 5 6 ; 7 8 9]
function [result] = checkEchelonMatrix(M)
% M – input matrix to test
M=[1 2 3; 4 5 6 ; 7 8 9]
%rest of my code is here
end
When I try to run my function
checkEchelonMatrix(M) I get the following error:
>> matrixcheck(M)
Undefined function or variable 'M'.
Best Answer