In MATLAB one uses the norm command.
x = [2;-3;1;-1]';
twonorm = norm(x) % or norm(x,2)
twonorm =
3.8730e+00
infnorm = norm(x,inf)
infnorm =
3
onenorm = norm(x,1)
onenorm =
7