This sounds very similar to other entries in this forum and elsewhere e.g.
But a little different, and those answers don't help me. When I got this message the first time, I realised I had forgotten to copy a file across from a neighbouring folder. (I would hardlink if windows allowed that on network drives, or softlink if matlab could follow windows' softlinks… but I digress.) Even after copying the file, I still get the file not found message. Weirdly, 'edit my_function.m' works!
>> my_function'my_function' is not found in the current folder or onthe MATLAB path, but exists in: H:\path\to\nearby_folderChange the MATLAB current folder or add its folder to the MATLABpath.>> exist('my_function')ans = 0>> which -all my_function.m'my_function.m' not found.>> edit my_function.m>> ls. .. picture.png figure.pdf my_function.m my_script.m
Best Answer