How to find the location of a file?

12 次查看(过去 30 天)
Hello, I need to be able to find the location of a an m.file and its full path (directory) by typing its name in the command window or programmatically. Is there any function that can do that? Thanks!

采纳的回答

the cyclist
the cyclist 2013-8-23
The which() command will do that.

更多回答(1 个)

Mehdi
Mehdi 2013-8-23
Thank you sir! It worked.

类别

Help CenterFile Exchange 中查找有关 Search Path 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by