필터 지우기
필터 지우기

uigetfile, is there anyway to choose multi suffix?

조회 수: 2 (최근 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'});

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 App Building에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by