フィルターのクリア

How can I use uigetfile to get the file path?

89 ビュー (過去 30 日間)
Alejandro
Alejandro 2013 年 4 月 11 日
Hello, I was wondering if I could use the function uigetfile to get the complete file path string.

採用された回答

Image Analyst
Image Analyst 2013 年 4 月 12 日
The documentation for uigetfile() is remiss in not showing any examples that use fullfile() to construct the full file name of the chosen file. Here is how you do it:
[baseName, folder] = uigetfile();
fullFileName = fullfile(folder, baseName)
  1 件のコメント
Alejandro
Alejandro 2013 年 4 月 12 日
Thank you! I was looking for the full file path and this is it!

サインインしてコメントする。

その他の回答 (1 件)

Matt J
Matt J 2013 年 4 月 12 日
The 2nd output argument of uigetfile() gives the path info. See
>>doc uigetfile
  1 件のコメント
Jan
Jan 2013 年 4 月 12 日
Exactly. Reading the help and doc text is a good strategy, when you have questions conderning a command.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeAdding custom doc についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by