1. 程式人生 > >matlab在一個figure中顯示多幅影象

matlab在一個figure中顯示多幅影象

以顯示2行3列為例:

subplot(2,3,1);imshow(“1.jpg”);

title('first img','fontname','Times New Roman','Color','k','FontSize',12);

hold on;

subplot(2,3,2);imshow(“2.jpg”);

title('second img','fontname','Times New Roman','Color','k','FontSize',12);

hold on;

subplot(2,3,3);imshow(“3.jpg”);

title('third img','fontname','Times New Roman','Color','k','FontSize',12);

hold on;

subplot(2,3,4);imshow(“4.jpg”);

title('fourth img','fontname','Times New Roman','Color','k','FontSize',12);

hold on;

subplot(2,3,5);imshow(“5.jpg”);

title('fifth img','fontname','Times New Roman','Color','k','FontSize',12);

hold on;

subplot(2,3,6);imshow(“6.jpg”);

title('sixth img','fontname','Times New Roman','Color','k','FontSize',12);

hold on;