a question about function -- uigetfile()

2 ビュー (過去 30 日間)
vx2008
vx2008 2014 年 1 月 5 日
編集済み: Stephen23 2015 年 12 月 7 日
the code
[FileName PathName]=uigetfile(('*.xlsx'), 'Choose a File');
runs Ok; but the code
[FileName PathName]=uigetfile(('*.xlsx','Excel Files(*.xlsx)'; '*.txt','Txt Files(*.txt)'), 'Choose a File');
runs wrongly. why? how should I modify it?

採用された回答

Adriano Bittar
Adriano Bittar 2014 年 6 月 6 日
編集済み: Stephen23 2015 年 12 月 7 日
Hi.. Try this code:
[filename, pathname] = uigetfile({'*.xlsx','Excel Files(*.xlsx)'; '*.txt','Txt Files(*.txt)'}, 'Pick a file');
I think it's only missing the {};

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeApp Building についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by