-
Notifications
You must be signed in to change notification settings - Fork 7
/
InitScript.m
55 lines (44 loc) · 1.34 KB
/
InitScript.m
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
% Init Script
% Remarks:
% 1. sa
% TODO:
% 1. ds
% Release Notes
% - 1.0.000 08/11/2016 Royi Avital
% * First release.
%
%% General Parameters
close('all');
clear();
clc();
% set(0, 'DefaultFigureWindowStyle', 'docked');
% defaultLoosInset = get(0, 'DefaultAxesLooseInset');
% set(0, 'DefaultAxesLooseInset', [0.05, 0.05, 0.05, 0.05]);
figPosSmall = [100, 100, 0400, 0300];
figPosMedium = [100, 100, 0800, 0600];
figPosLarge = [100, 100, 0960, 0720];
figPosXLarge = [100, 100, 1100, 0825];
figPosX2Large = [100, 100, 1200, 0900];
figPosX3Large = [100, 100, 1400, 1050];
figPosDefault = [100, 100, 0560, 0420];
fontSizeTitle = 14;
fontSizeAxis = 12;
fontSizeString = 12;
lineWidthThin = 1;
lineWidthNormal = 3;
lineWidthThick = 4;
markerSizeSmall = 4;
markerSizeNormal = 8;
markerSizeLarge = 10;
% https://www.mathworks.com/help/matlab/graphics_transition/why-are-plot-lines-different-colors.html
% https://www.mathworks.com/matlabcentral/answers/160332
mColorOrder = get(groot, 'DefaultAxesColorOrder');
randomNumberStream = RandStream('mlfg6331_64', 'NormalTransform', 'Ziggurat');
subStreamNumber = round(sum(clock()));
subStreamNumber = 162;
set(randomNumberStream, 'Substream', subStreamNumber);
RandStream.setGlobalStream(randomNumberStream);
FALSE = 0;
TRUE = 1;
OFF = 0;
ON = 1;