function [N, lociZero] = nuleVektora(niz);
    lociZero = [];
    N = 0;
    for trazi = 1:length(niz)-1
        if niz(trazi)==0
            N = N + 1;
            lociZero = [lociZero trazi];
        elseif niz(trazi)*niz(trazi+1)<0
            N = N + 1;
            if abs(niz(trazi)) < abs(niz(trazi+1))
                lociZero = [lociZero trazi];
            else
                lociZero = [lociZero trazi+1];
            end
        end
    end
    if niz(end)==0
        N = N + 1;
        lociZero = [lociZero length(niz)];
    end
    
    