In MATLAB, you can calculate the length of a vector using the norm function.
To calculate the length of the vector (3, 6, -2), you can do the following:
main.m78 chars4 lines
This will output the length of the vector, which is approximately 7.9373.
gistlibby LogSnag