exist('filename.m','file')
and Octave tells you the file is there. But try to run it and it's not seen. Quite an annoying bug.
Solution #1: Quit and restart Octave. Not much of a solution - my students weren't impressed.
Solution #2: Remove current directory from path, then add it again. Not more impressive.
Solution #3: Type
path(path);
every time a new m-file is created to refresh the path. This is the only (semi) sensible solution I've found so far.
Is this a Windows bug or an Octave one? I'm inclined to blame Windows of course but who knows? I couldn't find much information about this bug. Seems like we may have to buy Matlab licenses after all...
No comments:
Post a Comment