How can I find the path of one file knowing only filename?

1 Ansicht (letzte 30 Tage)
Gabriela
Gabriela am 20 Mär. 2014
Kommentiert: Image Analyst am 20 Mär. 2014
How can I find the path of one file knowing only filename?

Akzeptierte Antwort

Dishant Arora
Dishant Arora am 20 Mär. 2014
Bearbeitet: Dishant Arora am 20 Mär. 2014
If its in one of the matlab path
fileparts(which(filename))
  1 Kommentar
Image Analyst
Image Analyst am 20 Mär. 2014
You said " knowing only filename" so we assume that you know the filename. Why don't you know it? Or do you? It's not clear. Do you only think it might be there and have to try to find it somewhere?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Environment and Settings finden Sie in Help Center und File Exchange

Tags

Noch keine Tags eingegeben.

Community Treasure Hunt

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

Start Hunting!

Translated by