Filter löschen
Filter löschen

multiple image in one GUI axes

3 Ansichten (letzte 30 Tage)
Ahmad
Ahmad am 24 Jun. 2016
Beantwortet: Image Analyst am 26 Jun. 2016
Hello, I want to display multiple image in one axes in GUI in for loop. I have 9 image and i wand show them in one axes. I used this code but it doesnt work. can anyone help ? Thanks
k=1;
axes(handles.axes2)
for i=1:3
for j=1:3
subplot(3,3,k);
imshow(testimages(:,:,missimages(k)));
k=k+1;
end
end
  3 Kommentare
Geoff Hayes
Geoff Hayes am 25 Jun. 2016
Ahmad - the above code will create nine subplots within the figure. So there will be nine axes and not one. Please clarify exactly what you are trying to do.
Ahmad
Ahmad am 26 Jun. 2016
Geoff Hayes, You're right. That is exactly happened when i want to plot these 9 axes in a figure. But i am working on GUI and i want this whole figure (or 9 axes) appear in GUI.
i want these 9 axes shown in this GUI
by clicking 'Show 50 first failed predictions' button . What handle should i use? axes or uipanel or ???
And sorry for my poor English . Thanks

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Image Analyst
Image Analyst am 26 Jun. 2016
Just save them to disk and use montage() to make a new image where all the others are stitched together. Or see the "Stitch" program: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A58030
  2 Kommentare
Ahmad
Ahmad am 26 Jun. 2016
But i have to write some titles and description for them. anyway thanks for your help.
Image Analyst
Image Analyst am 26 Jun. 2016
So? You can still do that.

Melden Sie sich an, um zu kommentieren.


Image Analyst
Image Analyst am 26 Jun. 2016

Kategorien

Mehr zu Line Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by