how can i browse an image using matlab gui?

1 次查看(过去 30 天)
can u send me a tutorial for solving my problem
  7 个评论
Ashitha
Ashitha 2013-7-10
@Dishant Arora: How to get path of uigetfile?
Jan
Jan 2013-7-10
You do not need the path of uigetfile. If you want to know how the path is replied by uigetfile, look at David's answer and read the documentation:
doc uigetfile

请先登录,再进行评论。

采纳的回答

David Sanchez
David Sanchez 2013-7-10
Add the following to the pushbutton callback function
[filename, pathname, filterindex] = uigetfile('*.png', 'Pick a .PNG image');
You can change, of course, the extension of your images. Go to:
help uigetfile
or
doc uigetfile
for more options.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Dialog Boxes 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by