Hey @sungkyum Kim
I too encountered this issue in MATLAB R2020a and there are two ways to solve this issue either by using only the auto grid axes positioning or by using only custom positions. Kindly follow the steps given below:
- Auto grid axes positioning
Use the syntax:
subplot(m,n,p)
For example:
subplot(4,6,1)
subplot(4,6,2)
subplot(4,6,3)
subplot(4,6,4)
subplot(4,6,5)
subplot(4,6,6)

2. Custom positions
Use the syntax:
subplot('Position',pos)
For example:
pos1 = [0.025 0.68 0.14 0.17];
subplot('Position', pos1)
pos2 = [0.19 0.68 0.14 0.17];
subplot('Position', pos2)
pos3 = [0.35 0.68 0.14 0.17];
subplot('Position', pos3)
pos4 = [0.51 0.68 0.14 0.17];
subplot('Position', pos4)
pos5 = [0.68 0.68 0.14 0.17];
subplot('Position', pos5)
pos6 = [0.85 0.68 0.14 0.17];
subplot('Position', pos6)

Kindly refer the following MATLAB documentation for “subplot”:


