フィルターのクリア

uigetfile, is there anyway to choose multi suffix?

1 回表示 (過去 30 日間)
Yu Li
Yu Li 2019 年 2 月 27 日
コメント済み: Yu Li 2019 年 2 月 27 日
I need want to choose image files, the file type is either .jpg or .png, so I need to add an additional input to determine the file type and to pick it using function 'uigetfile', such as
uigetfile('*.jpg')
or
uigetfile('*.png')
my question is, is there anyway to show both the .jpg and .png file together when I use uigetfile, so I can remove that additional input?
Thanks!
Yu

採用された回答

Adam Danz
Adam Danz 2019 年 2 月 27 日
There are examples in Matlab's documentation.
[file,path] = uigetfile({'*.jpg';'*.png'});
  1 件のコメント
Yu Li
Yu Li 2019 年 2 月 27 日
Thank you.
Bests,
Yu

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

その他の回答 (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