Hi,
I want to write a function in MATLAB that selects the even rows and columns and returns of matrix M and then puts them in a new matrix called even.
I am new to functions and I am not sure why I am getting the following error;
Not enough input arguments.Error in even_index (line 2)
The code I am using is the following
function even = even_index(M) even = M(2:2:end,2:2:end);end
Thanks
Best Answer