Added Project and Report
This commit is contained in:
7
Lessons/11-03/eigenfaces/tightsubplot.m
Executable file
7
Lessons/11-03/eigenfaces/tightsubplot.m
Executable file
@ -0,0 +1,7 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user