Here's a copy-paste of what MATLAB is doing after I type nume1(A) into the command window:
nume1(A)
%Undefined function 'nume1' for input arguments of type 'double'.
Did you mean:
numel(A)
ans =
1034289
Does anyone know how to stop matlab from doing this? This is preventing me from using nume1 in the editor...
Let's assume this isn't a typo and you didn't mean to invoke the
numelfunction.Make sure you're not trying to call an M-script as a function. The first line in your
nume1.mfile should read something likeYou should make sure your function is either on your MATLAB search path (type
pathin the Command Window to see what MATLAB's current search path is), or in your current working directory (typepwd). To see which function or script MATLAB will use, if any, type:The top most is the one that will be invoked.