SyntaxFix
Write A Post
Hire A Developer
Questions
I don't know any MATLAB and I've never used it, but it seems to me you are dividing. Why? Something like this will be much faster:
d = 1/norm(V) V1 = V * d