t0 = 1995;        % Velg noder rundt 0 for å bedre kondisjonstallet. 
x = [-9:3:12];
y = [48.771, 85.983, 123.999,156.776,168.746,180.884,162.777,128.277];
a = polyfit(x,y,length(x)-1);
t = linspace(-9,15,101);
plot(x+t0,y,'*',t+t0,polyval(a,t),2010,polyval(a,15),'*r');
axis([1985 2012 0 800])
disp(sprintf('Oljeproduksjonen i 2010 blir %7.3f mill. ',polyval(a,15)));


