What does the function chop do?
(can describe in English)



function newv = chop(v)
    if (length(v) <=5)
        newv = v;
    else
        while (length(v) > 5)
            v(end) = [];
        end
    newv = v;
    end