if 'r' is a vector. norm(r), gives the magnitude only if the vector has values. If r is an array of vectors, then the norm does not return the magnitude, rather the norm!!
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
4 Comments
Azzi Abdelmalek (view profile)
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/86434-magnitude-of-a-vector#comment_167494
Philosophaie (view profile)
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/86434-magnitude-of-a-vector#comment_167499
Prashant C (view profile)
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/86434-magnitude-of-a-vector#comment_289762
Abdullraheem Diab (view profile)
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/86434-magnitude-of-a-vector#comment_719921
Sign in to comment.