path of a mfile not on search path
5 views (last 30 days)
Show older comments
When an mfile is not on the search path or current path and when user types the name, MATLAB find it and issues a suggestion
>> foo
'foo' is not found in the current folder or on the MATLAB path, but exists in:
E:\matlab\test
Change the MATLAB current folder or add its folder to the MATLAB path.
Is there anyway to retreive the folder 'E:\matlab\test' programmatically?
2 Comments
Rik
on 9 Oct 2019
I haven't tested this, but if I recall correctly the only folders that are searched are the folders in the drop down menu containing previous current working directory. There may be a way to retrieve that directory list and generate this suggestion yourself. You will probably need some Yair Altman level tricks.
Accepted Answer
More Answers (1)
See Also
Categories
Find more on Search Path in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!