clc
clear all
% napájecí napìtí
vdd=1e-2*[
507
493
469
445
432
401
376
353
328
301
284
270
262
254
243
233
228
225
]; 

% napìtí VCC-VLCD (kontrast)
vlcd=1e-2*[
461
446
423
413
413
414
413
413
415
413
414
414
414
415
415
409
398
394
];

% pøibližná frekvence (7.7Hz je minimum, 11kHz maximum)
freq=[
7.7
7.7
7.7
131
144
175
208
252
324
456
625
862
1120
1620
3450
11000
11000
11000
];

xmin = 2.0;
xmax = 5.2;
%plot(vdd,vlcd,'-r*');
%xlabel("VDD [V]");
%ylabel("VDD-VLCD [V]")
%xlim([xmin,xmax]);
%ylim([3.5,5.0]);
%grid on
%set(gca, "fontsize", 14, "LineWidth", 1);

figure(2)
%plotyy(vdd,vlcd,vdd,freq,@plot, @semilogy); % varianta s logaritmickou osou frekvence
ax=plotyy(vdd,vlcd,vdd,freq/1000);
xlim([xmin,xmax]);
xlabel ("VCC [V]");
ylabel (ax(1), "VCC-VLCD [V]");
ylabel (ax(2), "frequency [kHz]");
grid on
