-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathget_report_heading.m
More file actions
44 lines (32 loc) · 896 Bytes
/
Copy pathget_report_heading.m
File metadata and controls
44 lines (32 loc) · 896 Bytes
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
function [H] = get_report_heading(order,my_title)
import mlreportgen.dom.*;
import mlreportgen.report.*;
iptgetpref('ImshowInitialMagnification');
switch order
case 1
% Report Heading 1
H = Heading(1,my_title);
H.FontSize="32pt";
H.Color='#00b050';
H.FontFamilyName='Arial';
case 2
% Report Heading 2
H = Heading(2,my_title);
H.FontSize="24pt";
H.Color='#809ec2';
H.FontFamilyName='Arial';
case 3
% Report Heading 3
H = Heading(3,my_title);
H.FontSize = "14pt";
H.Color = '#404040';
H.FontFamilyName = 'Arial';
case 4
% Report Heading 4
H = Heading(4,my_title);
H.FontSize = "10pt";
H.Color = '#404040';
H.FontFamilyName = 'Arial';
H.Bold = false;
end
end