Matlab yyplot标签和情节

时间:2017-05-18 17:01:54

标签: matlab

我想将e_eff5(2)的虚部和实部绘制为未标记的法线,将e_eff5(1)的虚部和实部绘制为虚线。 实部位于左侧尺寸(蓝色),虚部位于右侧(红色)。然后我要标记4行,点缀蓝色,正常蓝色,点缀红色,正常红色。

i=1;
for T = 20:5:25

teta = 1 - 300/(273.15 + T);
e0 = 77.66 - 103.3 * teta;
e_unendlich = 0.066 * e0;
yd = 20.27 + 146.5 * teta + 314 * teta^2; %relaxation frequency

e_eff5(i,:) = (e0 - e_unendlich)./(1 - j.* f ./ (yd * 10^9)) + e_unendlich;

i=i+1;
end

figure(5);
plotyy(fGhz,e_eff5(1,:), fGhz,imag(e_eff5(1,:)));
legend(strcat('real T ={ }', 20, '°C'), strcat('imag T ={ } ', 25, '°C'));
hold on;
[hAx,hLine1,hLine2] = plotyy(fGhz,e_eff5(2,:), fGhz,imag(e_eff5(2,:)));
set(hLine1,'LineStyle','--')
set(hLine2,'LineStyle','--')
%title('Water Single Debye Model below 100 GHz as a function of temperature Manabe Fit');
title('Wasser Permittivität einzelnes Debye Model (gültig unter 100 GHz)');
xlabel('Frequenz [GHz]');
%ylabel('rel. Permittivität \epsilonr [ ]');

ylabel(hAx(1),'rel. Permittivität Realteil \epsilonr [ ]') % left y-axis 
ylabel(hAx(2),'rel. Permittivität Imaginarteil \epsilonr [ ]') % right y-axis
legend(strcat('real T ={ }', 20, '°C'), strcat('imag T ={ } ', 25, '°C'));


grid on
grid minor

0 个答案:

没有答案