How to measure (fitting) the slope of the curve logarithm in gnuplot?
Answers
Answered by
0
Answer:
Step-by-step explanation:
I have some curves logarithm (for x axis) and I want to measure the slope of them. I tried to use the fit command in gnuplot but it is right for the line but not exactly for the curve. Here my commands:
set logscale x
f(x) = m*x + b
set fit logfile
fit [0.1:1] f(x) 'vrpsphi32v01f002' using 1:2 via m,b
plot 'vrpsphi32v01f002' using 1:2 w lp lw 2.2 t '{/Symbol F}=0.32',\
f(x) w l lw 1.5 notitle
I also used some values of m and b after they are found by the fit function
Hope it helps you....
Similar questions