To find the 2-norm of a vector in MATLAB, you can use the norm
function with a second argument of 2:
main.m67 chars4 lines
To check the orthogonality of two vectors in MATLAB, you can take their dot product and check if it is zero (within some tolerance):
main.m229 chars10 lines
gistlibby LogSnag