MATLAB: Magnitude of a vector

vector

syms x y z
r = [x y z]
rmag???
rmag should equal (x^2 + y^2 + z^2)^0.5

Best Answer

This works perfectly fine on MATLAB R2013a:
>> syms x y z
r = [x y z];
norm(r)