Files
cmdla/Lessons/11-03/eigenfaces/tightsubplot.m

7 lines
196 B
Mathematica
Raw Normal View History

2023-10-29 02:06:02 +01:00
function tightsubplot(dim, i, data)
row = mod(i-1, dim);
col = floor((i-1) / dim);
subplot('position', [row*(1/dim), (dim-col-1)*(1/dim), 1/dim-.001, 1/dim-0.001 ]);
imagesc(data);
axis off;