loading files to show in GUI axes

7 views (last 30 days)
joanna
joanna on 3 Sep 2012
Commented: Anjali Chandak on 23 Jun 2020
[Merged information from duplicate question]
i used these codes hat i've got from the web to load files one at each time upon clicking the push button. but how do i load them by selecting 4 files and load them simultaneously in the GUI axes.
[nombre dire]=uigetfile('*.jpg','Load');
if nombre == 0
return
end
imagen=imread(fullfile(dire,nombre));
axes(handles.axes2)
imshow(imagen)
handles.img=imagen;
guidata(hObject, handles);

Answers (1)

Jan
Jan on 3 Sep 2012
Edited: Jan on 3 Sep 2012
Your code does not include any command to display the loaded data. Then it is expected, that the data are not displayed.
Please explain the format of the file and the wanted type of display, e.g. it matters if the file has a MAT-format and you want to draw some contained data as diagram, or if you want to import a JPEG and display it as image.
  2 Comments
Anjali Chandak
Anjali Chandak on 23 Jun 2020
Which command I needy to use for display the loaded data

Sign in to comment.

Categories

Find more on Visual Exploration in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!