function y = nlfun(a,t)
% Lasketaan mallin tuottamat arvot datalle t
y = a(1) + a(2).*t + a(3).*t.^2 + a(4).* ... 
    exp(-(t-a(5)).^2/(2.*a(6).^2));
