Filter löschen
Filter löschen

how can i browse an image using matlab gui?

1 Ansicht (letzte 30 Tage)
Ashitha
Ashitha am 10 Jul. 2013
can u send me a tutorial for solving my problem
  7 Kommentare
Ashitha
Ashitha am 10 Jul. 2013
@Dishant Arora: How to get path of uigetfile?
Jan
Jan am 10 Jul. 2013
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

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

David Sanchez
David Sanchez am 10 Jul. 2013
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.
  3 Kommentare
Ashitha
Ashitha am 11 Jul. 2013
path is displayed in the text box.. but image is not displayed.. why it so??
Dishant Arora
Dishant Arora am 11 Jul. 2013
fileName = uigetfile('*.jpg');
imshow(fileName)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Dialog Boxes finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by