path of a mfile not on search path
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Bruno Luong
el 30 de Sept. de 2019
Comentada: Bruno Luong
el 9 de Oct. de 2019
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 comentarios
Rik
el 9 de Oct. de 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.
Respuesta aceptada
Más respuestas (1)
Ver también
Categorías
Más información sobre Search Path en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!