how to display multiple image

조회 수: 4 (최근 30일)
Aishwarya
Aishwarya 2011년 5월 6일
I am using image(C) function to display image. But I need to display to images simutaneously image(C1) and image(C2). How can i do that.please suggest.

답변 (2개)

Sean de Wolski
Sean de Wolski 2011년 5월 6일
One way: Concatenate them
If they're the same size:
image([C C2]);
If not. Pad the smaller one with zeros so they're the same size and then do the aforementioned.
Another way: use subplots
doc subplot
  댓글 수: 1
Aishwarya
Aishwarya 2011년 5월 6일
thank you it worked. I am new in MATLAB programming. I really appreciate your help.

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


Nehul Thakkar
Nehul Thakkar 2011년 5월 6일
U can use subplot command.....
subplot(1,2,1), subimage(X,map)
subplot(1,2,2), subimage(X2,map2)

Community Treasure Hunt

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

Start Hunting!

Translated by