Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

What does norm(A-B) mean in Matlab?

Status
Not open for further replies.

scholar_a

Member level 1
Joined
Jul 4, 2007
Messages
35
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Iran
Activity points
1,522
Hi everybody

In Matlab software, what does it mean? :

norm(A-B); A & B are vectors for example : A=[1 2 3] and B=[4 5 6]

or if we say Y=norm(A-B); then how is Y computed?

Thx, Best Regards
 

Re: A simple question

Hi,

Considering A=[1 2 3] and B=[4 5 6], then A-B=[1-4 2-5 3-6]=[-3 -3 -3]
then the norm (L2 norm) of A-B is Y=SQRT((-3)^2+ (-3)^2+(-3)^2)=3*SQRT(3).
Correct me if I am wrong.
RFCMOS
 

    scholar_a

    Points: 2
    Helpful Answer Positive Rating
Re: A simple question

yea thats right
in matlab when u use this syntax:
norm(A-B);
it returns max(svd(A-B));
and SVD(A-B) is Singular value decomposition of (A-B)
Note that:
norm(a-b)=max(svd(a-b))
 

    scholar_a

    Points: 2
    Helpful Answer Positive Rating
Re: A simple question

Norm depens on metric which is given in linear space. If metric is Euclidean (this case has been discussed in messages above) then the norm is counted as the square root of the sum of vector's coordinates in the 2nd power.

However, metric may be city-block, Mahalanobis, etc. Then norm will be expressed in another way.

In general, norm of given vector is the distance between the zero vector and the given vector (norm depends on metrics)

With respect,

Dmitrij
 

    scholar_a

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top