Details |
Last modification |
View Log
Rev |
Author |
Line No. |
Line |
704 |
kaklik |
1 |
set terminal png
|
|
|
2 |
|
|
|
3 |
set key under
|
|
|
4 |
set grid
|
|
|
5 |
set xlabel "Input voltage [V]"
|
|
|
6 |
set ylabel "Output voltage [V]"
|
|
|
7 |
|
|
|
8 |
set output "graf.png"
|
|
|
9 |
|
|
|
10 |
f(x)=k*x + q
|
|
|
11 |
g(x)=a*x + b
|
|
|
12 |
|
|
|
13 |
fit [-0.9:0.9] f(x) "./zesileni.txt" using 1:2 via k,q
|
|
|
14 |
fit [-0.9:0.9] g(x) "./zesileni_inv.txt" using 1:2 via a,b
|
|
|
15 |
|
|
|
16 |
plot "./zesileni.txt" using 1:2 with points title "Non inverting", f(x) title "Non inverting fit", "./zesileni_inv.txt" using 1:2 with points title "Inverting", g(x) title "Inverting fit"
|
|
|
17 |
|