Functions | Variables

findfit.m File Reference

Functions

 plot (sensval, dist_cm, 'r+', x,(a./(x-b)-c), 'b-')

Variables

load sharp80_calibdata txt dist_cm = sharp80_calibdata(:,1)
 sensval = sharp80_calibdata(:,3)
 start = [6000
 estimated
 b = estimated(2)
 c = estimated(3)
 x = min(sensval):max(sensval)

Function Documentation

plot ( sensval  ,
dist_cm  ,
'r+'  ,
x  ,
(a./(x-b)-c ,
'b-'   
)

Variable Documentation

b = estimated(2)
end c = estimated(3)
Examples:
testmap.c.
load sharp80_calibdata txt dist_cm = sharp80_calibdata(:,1)
Initial value:
 fminsearch(@(x)fitfun(x,sensval,dist_cm), start)

a = estimated(1)
sensval = sharp80_calibdata(:,3)
start = [6000
x = min(sensval):max(sensval)