필터 지우기
필터 지우기

how can i browse an image using matlab gui?

조회 수: 1 (최근 30일)
Ashitha
Ashitha 2013년 7월 10일
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.
  댓글 수: 3
Ashitha
Ashitha 2013년 7월 11일
path is displayed in the text box.. but image is not displayed.. why it so??
Dishant Arora
Dishant Arora 2013년 7월 11일
fileName = uigetfile('*.jpg');
imshow(fileName)

댓글을 달려면 로그인하십시오.

추가 답변 (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