-
Notifications
You must be signed in to change notification settings - Fork 0
/
Energia_Sem_graf.m
129 lines (108 loc) · 3.88 KB
/
Energia_Sem_graf.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
function Energia_Sem_graf(X1, YMatrix1,opt)
%CREATEFIGURE(X1, YMATRIX1)
% X1: vector of x data
% YMATRIX1: matrix of y data
% Auto-generated by MATLAB on 06-Jan-2018 22:03:49
% Create figure
figure1 = figure;
% Create axes
axes1 = axes('Parent',figure1,...
'Position',[0.12598393574297 0.415699481865286 0.462369477911645 0.542849740932642]);
hold(axes1,'on');
% Create multiple lines using matrix input to plot
plot1 = plot(X1,YMatrix1,'Visible','on','LineWidth',1,'Parent',axes1);
set(plot1(1),'MarkerSize',8,'LineStyle','--','Color',[0 0.5 0]);
set(plot1(2),'MarkerSize',8,'Color',[0 0 1]);
set(plot1(3),'LineStyle','--','Color',[0 0.5 0]);
set(plot1(4),'Color',[0 0 1]);
set(plot1(5),'LineStyle','--','Color',[0 0.5 0]);
set(plot1(6),'Color',[0 0 1]);
set(plot1(7),'MarkerSize',8,'LineStyle','--','Color',[0 0.5 0]);
set(plot1(8),'MarkerSize',8,'Color',[0 0 1]);
set(plot1(9),'MarkerSize',10,'LineStyle','--','Color',[0 0.5 0]);
set(plot1(10),'MarkerSize',10,'Color',[0 0 1]);
% Create xlabel
xlabel('Cell Temperature [ºC]','FontName','Times New Roman');
% Create ylabel
ylabel('Energetic Efficiency [%]','FontName','Times New Roman');
% Uncomment the following line to preserve the X-limits of the axes
xlim(axes1,[30 110]);
box(axes1,'on');
% Set the remaining axes properties
set(axes1,'FontName','Times New Roman','FontSize',11,'XGrid','on','YGrid',...
'on');
switch opt
case 'heat'
%%% CALOR
ylim(axes1,[5 70]); % CALOR SEM
%Create textbox
annotation(figure1,'textbox',...
[0.243795566502463 0.437659034216379 0.0894396531491959 0.0636132304146696],...
'String',{'200'},...
'FontName','Times New Roman',...
'FitBoxToText','off',...
'EdgeColor','none');
% Create textbox
annotation(figure1,'textbox',...
[0.328586206896551 0.526717558389409 0.0894396531491958 0.0636132304146697],...
'String',{'400'},...
'FontName','Times New Roman',...
'EdgeColor','none');
% Create textbox
annotation(figure1,'textbox',...
[0.436344827586207 0.437659034216378 0.0894396531491959 0.0636132304146697],...
'String',{'600'},...
'FontName','Times New Roman',...
'EdgeColor','none');
% Create textbox
annotation(figure1,'textbox',...
[0.468672413793103 0.521628499865236 0.0894396531491958 0.0636132304146697],...
'String',{'800'},...
'FontName','Times New Roman',...
'EdgeColor','none');
% Create textbox
annotation(figure1,'textbox',...
[0.408512315270935 0.712304617567487 0.145535710480596 0.0595238084594409],...
'String',{'1000 W/m²'},...
'FontName','Times New Roman',...
'EdgeColor','none');
%%%%% ABAIXO FRIO
otherwise % cool
ylim(axes1,[5 42]); % FRIO
%ylim(axes1,[30 72]); % CALOR COM CONCENTRAÇÃO
% Create textbox
annotation(figure1,'textbox',...
[0.410298029556649 0.733733188996054 0.145535710480596 0.0595238084594411],...
'String','1000 W/m²',...
'FontName','Times New Roman',...
'FitBoxToText','off',...
'EdgeColor','none');
% Create textbox
annotation(figure1,'textbox',...
[0.518672413793103 0.485914214150951 0.0894396531491957 0.0636132304146697],...
'String',{'800'},...
'FontName','Times New Roman',...
'FitBoxToText','off',...
'EdgeColor','none');
% Create textbox
annotation(figure1,'textbox',...
[0.447059113300492 0.435278081835426 0.0894396531491959 0.0636132304146697],...
'String',{'600'},...
'FontName','Times New Roman',...
'FitBoxToText','off',...
'EdgeColor','none');
% Create textbox
annotation(figure1,'textbox',...
[0.328586206896551 0.555288986960839 0.0894396531491958 0.0636132304146697],...
'String',{'400'},...
'FontName','Times New Roman',...
'FitBoxToText','off',...
'EdgeColor','none');
% Create textbox
annotation(figure1,'textbox',...
[0.252724137931034 0.437659034216379 0.0894396531491959 0.0636132304146696],...
'String',{'200'},...
'FontName','Times New Roman',...
'FitBoxToText','off',...
'EdgeColor','none');
end