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

1 view (last 30 days)
How can I find the path of one file knowing only filename?

Accepted Answer

Dishant Arora
Dishant Arora on 20 Mar 2014
Edited: Dishant Arora on 20 Mar 2014
If its in one of the matlab path
fileparts(which(filename))
  1 Comment
Image Analyst
Image Analyst on 20 Mar 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?

Sign in to comment.

More Answers (0)

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!