two figures or image in single gui

조회 수: 4 (최근 30일)
Manu MJ
Manu MJ 2011년 6월 15일
HI.... How to read the two different images for two different graphs in single GUI?
  댓글 수: 1
Gerd
Gerd 2011년 6월 15일
Do you want to read the data of 2 different graphs in one figure?

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

채택된 답변

Arturo Moncada-Torres
Arturo Moncada-Torres 2011년 6월 15일
Mmm, actually is doing the same for one axes than for two. You just need to specify in which axes you will like to display the image. You can do this using the Parent property and the handle of the axes in the GUI. On a quick thought, it would be something like this:
I1 = imread('image1.jpg');
I2 = imread('image2.jpg');
imagesc(I1, 'Parent', handles.axes1);
imagesc(I2, 'Parent', handles.axes2);
Just put that in your code wherever you need it.

추가 답변 (0개)

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by