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
Stephen23
on 9 Oct 2019
" There may be a way to retrieve that directory list..:"
Stored in prefdir, that shouldn't be too hard.
Accepted Answer
More Answers (1)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!