function n = mynorm( x, p )
pom=0;
if(p==inf)
    n=max(abs(x));
else
    for i=1:1:numel(x)
        pom=pom+(abs(x(i))^p);
    end
    n=pom^(1/p);
    % alternativno n =sum(abs(x.^p))^(1/p);
end
end

