Functions | Variables

findfit_short.m File Reference

Functions

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

Variables

load
puck_measurement_sharp_calibdata
txt 
dist_cm = puck_measurement_sharp_calibdata(:,1)
 sensval = puck_measurement_sharp_calibdata(:,2)
 valid_meas = find((dist_cm >= 4) & (dist_cm <= 25))
 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)
c = estimated(3)
dist_cm = puck_measurement_sharp_calibdata(:,1)
Initial value:
 fminsearch(@(x)fitfun(x,sensval,dist_cm), start)

a = estimated(1)
sensval = puck_measurement_sharp_calibdata(:,2)
start = [6000
valid_meas = find((dist_cm >= 4) & (dist_cm <= 25))
x = min(sensval):max(sensval)