How to find the location of a file?

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!

 Respuesta aceptada

the cyclist
the cyclist el 23 de Ag. de 2013

0 votos

The which() command will do that.

Más respuestas (1)

Mehdi
Mehdi el 23 de Ag. de 2013

0 votos

Thank you sir! It worked.

Categorías

Más información sobre File Operations en Centro de ayuda y File Exchange.

Preguntada:

el 23 de Ag. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by