[Matlab] subplot 紧凑,减少空白
N = 10;
w = 1.0/N; h = 1.0/N;
wi = 0.9*w; hi = 0.9*h;
for i = 1:100
[x,y] = ind2sub([N,N],i);
subplot('Position', [(x-1)*w 1-y*h wi hi]);
%subplot(N,N,i);
end
w = 1.0/N; h = 1.0/N;
wi = 0.9*w; hi = 0.9*h;
for i = 1:100
[x,y] = ind2sub([N,N],i);
subplot('Position', [(x-1)*w 1-y*h wi hi]);
%subplot(N,N,i);
end