Question #155   Submitted by Answiki on 09/17/2020 at 12:38:53 PM UTC

How to compute the unit vector of a MATLAB vector?

Answer   Submitted by Answiki on 09/17/2020 at 12:43:27 PM UTC

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

3 events in history
Answer by Answiki on 09/17/2020 at 12:43:27 PM

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

Answer by Answiki on 09/17/2020 at 12:43:19 PM

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

Question by Answiki 09/17/2020 at 12:38:53 PM
How to compute the unit vector of a MATLAB vector?
# ID Query URL Count

Icons proudly provided by Friconix.