Menu

#3 Path to Matlab toolboxes not alwas correctly generated

open
nobody
None
5
2007-06-07
2007-06-07
Anonymous
No

This occurs in the function 'matlab-mode-determine-mfile-path', when the matlab command doesn't contain the path (i.e. is of the form 'matlab'). The function searches then for the matlab executable in the exec-path (e.g. the PATH env variable on linux). If the matlab path in this variable ends with a '/', then the function returns something like '$MATLAB_ROOT/bin//toolboxes' instead of '$MATLAB_ROOT/toolboxes'.

This can be fixed by changing the line:
(if (string-match "/bin$" path)
to
(if (string-match "/bin/*$" path)

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.