clear all;
close all;
clc;
ant1= xlsread('Mesure2707.xlsx','A:B');
ant2= xlsread('Mesure2707.xlsx','C:D');
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%START FIGURE PLOTS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
C=10.5+23.5;
set(0,'DefaultAxesFontName', 'Times New Roman');
Tsize=25;
figure('Name','Resultats de mesures','Position',[0 0 1000 750])
axes('FontSize',30,'Clim',[-30,10],'CLimMode','manual');
%surf(H0/(10000*80),cpv*1e12,solution);
shading interp;
F11 = plot (ant1(:,1),ant1(:,2)+C,'-','linewidth',3,'Color',[0 0 1]);
hold on;
F12 = plot (ant2(:,1),ant2(:,2)+C,'-','linewidth',3,'Color',[1 0 0]);
grid off;
axis([-30 5 -40+C -10+C]);
ylabel({'\it{P_R_a_d_i_a_t_e_d}\rm (dBm)'},'FontSize',Tsize);
xlabel('\it{P_i_n}\rm (dBm)','FontSize',Tsize);
set(gca,'YTickmode','manual','YTick',(-40+C:5:-10+C),'FontSize',Tsize);
set(gca,'XTickmode','manual','XTick',(-30:5:5),'FontSize',Tsize);
h_legend=legend([F11 F12],'Without On Antenna Power Combining','With On Antenna Power Combining','Location','NorthWest');
set(h_legend,'FontSize',Tsize);
legend boxoff;
set(gcf,'color','w');
set(gca,'TickDir','out')
box off;
ax = gca;
ax.LineWidth = 3;
line([-30 0], [-39.7+C -9.7+C],'linestyle','--','linewidth',3,'Color',[0 0 1]);
line([-30 0], [-40.3+C -10.3+C],'linestyle','--','linewidth',3,'Color',[1 0 0]);
line([-30 -12.75], [-23.5+C -23.5+C],'linestyle',':','linewidth',3,'Color',[0 0 1]);
line([-30 -5.75], [-17.1+C -17.1+C],'linestyle',':','linewidth',3,'Color',[1 0 0]);
line([-12.75 -12.75], [-40+C -23.5+C],'linestyle',':','linewidth',3,'Color',[0 0 1]);
line([-5.75 -5.75], [-40+C -17.1+C],'linestyle',':','linewidth',3,'Color',[1 0 0]);
text('Interpreter','latex','String','OCP1dB = 10.5 dBm','Position',[-29.5 -25+C],'FontSize',20,'BackgroundColor',[1 1 1],'Color',[0 0 1]);
text('Interpreter','latex','String','OCP1dB = 16.9 dBm','Position',[-29.5 -18.6+C],'FontSize',20,'BackgroundColor',[1 1 1],'Color',[1 0 0]);
text('Interpreter','latex','String','ICP1dB = -12.5 dBm','Position',[-25 -4],'FontSize',20,'BackgroundColor',[1 1 1],'Color',[0 0 1]);
text('Interpreter','latex','String','ICP1dB = -5.5 dBm','Position',[-5 -4],'FontSize',20,'BackgroundColor',[1 1 1],'Color',[1 0 0]);
x = [0.45 0.45];
y = [0.568 0.74];
a=annotation('textarrow',x,y);
a.Color = 'red';
a.FontSize = Tsize;
x = [0.513 0.663];
y = [0.3 0.3];
a=annotation('textarrow',x,y);
a.Color = 'red';
a.FontSize = Tsize;
text('Interpreter','latex','String','+6.4 dB','Position',[-15.5 -19+C],'FontSize',20,'BackgroundColor',[1 1 1],'Color',[1 0 0]);
text('Interpreter','latex','String','+7 dB','Position',[-11 -33+C],'FontSize',20,'BackgroundColor',[1 1 1],'Color',[1 0 0]);
figure('Name','Resultats de mesures','Position',[0 0 1000 750])
axes('FontSize',30,'Clim',[-30,10],'CLimMode','manual');
%surf(H0/(10000*80),cpv*1e12,solution);
shading interp;
F11 = plot (ant1(:,1),ant1(:,2)+C,'-','linewidth',3,'Color',[0 0 1]);
hold on;
%F12 = plot (ant2(:,1),ant2(:,2),'-','linewidth',3,'Color',[1 0 0]);
grid off;
axis([-30 5 -40+C -10+C]);
ylabel({'\it{P_R_a_d_i_a_t_e_d}\rm (dBm)'},'FontSize',Tsize);
xlabel('\it{P_i_n}\rm (dBm)','FontSize',Tsize);
set(gca,'YTickmode','manual','YTick',(-40+C:5:-10+C),'FontSize',Tsize);
set(gca,'XTickmode','manual','XTick',(-30:5:5),'FontSize',Tsize);
h_legend=legend([F11],'Without On Antenna Power Combining','Location','NorthWest');
set(h_legend,'FontSize',Tsize);
legend boxoff;
set(gcf,'color','w');
set(gca,'TickDir','out')
box off;
ax = gca;
ax.LineWidth = 3;
line([-30 0], [-39.7+C -9.7+C],'linestyle','--','linewidth',3,'Color',[0 0 1]);
%line([-30 0], [-40.3 -10.3],'linestyle','--','linewidth',3,'Color',[1 0 0]);
line([-30 -12.75], [-23.5+C -23.5+C],'linestyle',':','linewidth',3,'Color',[0 0 1]);
%line([-30 -5.75], [-17.1 -17.1],'linestyle',':','linewidth',3,'Color',[1 0 0]);
line([-12.75 -12.75], [-40+C -23.5+C],'linestyle',':','linewidth',3,'Color',[0 0 1]);
%line([-5.75 -5.75], [-40 -17.1],'linestyle',':','linewidth',3,'Color',[1 0 0]);
text('Interpreter','latex','String','OCP1dB = 10.5 dBm','Position',[-29.5 -25+C],'FontSize',20,'BackgroundColor',[1 1 1],'Color',[0 0 1]);
%text('Interpreter','latex','String','OCP1dB = -17.1 dBm','Position',[-29.5 -18.6],'FontSize',20,'BackgroundColor',[1 1 1],'Color',[1 0 0]);
text('Interpreter','latex','String','ICP1dB = -12.5 dBm','Position',[-25 -4],'FontSize',20,'BackgroundColor',[1 1 1],'Color',[0 0 1]);
%text('Interpreter','latex','String','+6.4 dB','Position',[-15.5 -19],'FontSize',20,'BackgroundColor',[1 1 1],'Color',[1 0 0]);
%text('Interpreter','latex','String','+7 dB','Position',[-11 -33],'FontSize',20,'BackgroundColor',[1 1 1],'Color',[1 0 0]);
评论1