👋 Hello! I'm Alphonsio the robot. Ask me a question, I'll try to answer.

# How to compute the unit vector of a MATLAB vector?

Given a MATLAB vector ﻿﻿ , the associated unit vector can be computed by dividing the vector by it norm ﻿﻿ :

>> v=[3,4,6];
>> v/norm(v)

ans =

0.3841    0.5121    0.7682

More