How can I set subplot size in MATLAB figure?

前端 未结 4 1115
余生分开走
余生分开走 2021-02-04 16:11

I often need to plot 10 images together, but using this code results in small images :

img = rand(400,600); 
for i=1:10
 subplot(2,5,i); 
 imshow(img); 
 title(         


        
4条回答
  •  孤独总比滥情好
    2021-02-04 16:50

    You can use figure properties option once you generate the plot. Click on the subplot which you want to resize. From property editor select 'more properties' option. There if you scroll you will see 'Position' tab. You can change those values to see how the subplot moves and thus adjust subplot according to your preference.

提交回复
热议问题