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;

猜你喜欢

转载自blog.csdn.net/u013925378/article/details/82878407