Borrar filtros
Borrar filtros

problem with axes handle in guide

1 visualización (últimos 30 días)
nida
nida el 12 de Abr. de 2014
Comentada: nida el 12 de Abr. de 2014
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.

Respuestas (1)

Image Analyst
Image Analyst el 12 de Abr. de 2014
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 comentario
nida
nida el 12 de Abr. de 2014
thank image analysts,but still having axes(handles.axes2) error in command window

Iniciar sesión para comentar.

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by