%Modellfunktion - Trigonometrische Funktion mit linearem Trend
function y=TriModel(xm,ym,par,normdegree)
   % y=a*x+b*cos(c*x) +d
    ya=TriFunc(xm,par);
    % Norm entsprechend normdegree
    y=sum((abs(ym-ya)).^normdegree);
end 