Tue 05 Apr 2016 08:18:14 PM UTC, original submission:
Tested on Windows 7 with Octave 4.0.1, checked against Matlab 2015b
There seems to be inconsistency with what files can be accessed after the folder has been added via addpath. Octave help says addpath adds a folder to the function search path. Functions are thus found and executed as expected. However, other files, such as a csv data file, are found by some functions and not others.
e.g., making a folder 'c:/temp/testdata', and adding a small csv text file mytestdata.csv containing:
the following works locally as expected:
But:
Checking in Matlab, the file opens just fine using dlmread. There is also no strict definition in the matlab help for addpath that the path is a 'function only' path, and that it shouldn't be able to find data files.
Seems there may be a case where Matlab m-code may expect to be able to create a folder, addpath, put data files in there, and access them without a cd to the folder, and that this could error out in Octave. Unclear as to whether this is considered 'undocumented matlab' that we'd be trying to correct for.
|