close all
clear all

Flange_0 = 450;

Flange = [455.5 461  621  663.5 690  719    717   708.5 694.5 662.5];
Xhead =  [.34 36.82 60.7 78.68 89.90 100.8 99.25 95.91 90.41 78];

Flange = [Flange 507  625  669.5	697   715.5	733.5	730   722	708.5	678	534];
Xhead =  [Xhead 16.51 62.62 80.37 91.2    97.89 105.9 104.5  101.3  95.96 84.25  28.03];

%Flange = [Flange 660	563	675	714	732.5	747	763	758	751	738	710	567.5];


%Flange = [Flange 680	721	741	755.5	765	760	751.5	740.5	711.5	567];



Diff = (Flange-Flange_0)/2.54-Xhead

figure
plot(Xhead,Flange/2.54,'-x')
xlabel('Xhead Pos (in)');
ylabel('Flange Pos (in)');
hold all

plot(Xhead,Flange/2.54,0:120,[0:120]+Flange_0/2.54+mean(Diff(3:end)))

