필터 지우기
필터 지우기

problem with axes handle in guide

조회 수: 1 (최근 30일)
nida
nida 2014년 4월 12일
댓글: nida 2014년 4월 12일
i have a gui in guide for displaying my output image in axes it gives error as axes.(handles.axes2) in command window. i have given a handle in my code.

답변 (1개)

Image Analyst
Image Analyst 2014년 4월 12일
Just get the list of filenames in handles.files - I assume that's a listbox of image file names that the user clicks on. Then display it
% Get image name
selectedItem = get(handles.lstImageList, 'Value'); % Get number they clicked on.
fileList = get(handles.lstImageList, 'string'); % Get entire list of all files.
% If only one is selected, display it.
if length(selectedItem) == 1
fullImageFileName = fullfile(yourFolder, fileList{selectedItem});
% Display it
imageArray = imread(fullImageFileName);
imshow(imageArray, []);
end
  댓글 수: 1
nida
nida 2014년 4월 12일
thank image analysts,but still having axes(handles.axes2) error in command window

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

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by