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

 采纳的回答

If its in one of the matlab path
fileparts(which(filename))

1 个评论

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?

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Variables 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by