logo

How to Output Multiple Figures on One Page in MATLAB 📂Programing

How to Output Multiple Figures on One Page in MATLAB

Method

The subplot() function can be used to print multiple figures on one page. The first and second parameters respectively indicate the rows and columns of the chessboard on which images will be displayed, deciding the layout of the figures. The third parameter determines the sequence in which the specific figure will be placed.

1.JPG

2.JPG

Below is the code and the actual output.


X1=Phantom();
X2=radon(X1);
X3=fft(X2);
X4=iradon(X2,0:179);
 
 
subplot(2,2,1)
imagesc(X1)
title("Phantom");
 
subplot(2,2,2)
imagesc(X2)
title("radon");
 
subplot(2,2,3)
imagesc(abs(X3))
title("fft");
 
subplot(2,2,4)
imagesc(X4)
title("iradon");

untitled.jpg