Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#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