-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDimensionate_frame.m
More file actions
60 lines (34 loc) · 1.01 KB
/
Dimensionate_frame.m
File metadata and controls
60 lines (34 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
function [ left bottom width height] = Dimensionate_frame(All_data,i,j)
s = size(All_data);
n = s(1); %
m = s(2);
f_dy = .29;
height = 1/ (n*(1 + f_dy ) + 3*f_dy );
dy = height*f_dy;
f_dx = .15;
width = 1/ (m*(1 + f_dx ) + 4*f_dx );
dx = width*f_dx;
left = 4*dx + (j-1)*( width +dx );
bottom = 3*dy + (n-i)*( height+dy );
end
% Key commands associated with this function :
% dimS = get(0,'ScreenSize');
% figure('Color','white','position',dimS)
% a(nPlot+1)=axes('position',[ left bottom width height]);
% Original :
% s = size(All_data);
% n = s(1); %
% m = s(2);
%
% f_dy = .29;
% height = 1/ (n*(1 + f_dy ) + f_dy );
% dy = height*f_dy;
%
% f_dx = .15;
% width = 1/ (m*(1 + f_dx ) + f_dx/2 );
% dx = width*f_dx;
%
%
%
% left = dx/2 + (j-1)*( width +dx );
% bottom = dy + (n-i)*( height+dy );