フィルターのクリア

how can I get the path to a folder from user and open files with .fig format?

1 回表示 (過去 30 日間)
Mohammad
Mohammad 2014 年 1 月 14 日
コメント済み: Azzi Abdelmalek 2014 年 1 月 15 日
the question says it all!

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 1 月 14 日
編集済み: Azzi Abdelmalek 2014 年 1 月 14 日
Use uigetfile
[file,folder]=uigetfile('*.fig');
filename=fullfile(folder,file)
  2 件のコメント
Mohammad
Mohammad 2014 年 1 月 15 日
編集済み: Azzi Abdelmalek 2014 年 1 月 15 日
thank you so much, but I want to pick more than 1 file, so I have changed the code to:
[file,folder]=uigetfile('*.fig','multiselect','on');
filename=fullfile(folder,file)
and when I choose more than 1 file, I get the following error:
??? Undefined function or method 'eq' for input arguments of type 'cell'.
Error in ==> fullfile at 37
if (f(end)==fs) && (part(1)==fs),
Error in ==> modifier at 5
filename=fullfile(folder,file);
what should I do?
Azzi Abdelmalek
Azzi Abdelmalek 2014 年 1 月 15 日
I don't know how you got this error?

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

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by