|
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <jojhb4$9vj$1@newscl01ah.mathworks.com>...
> "anyani himura" <colormason@att.net> wrote in message <jojgbd$5kt$1@newscl01ah.mathworks.com>...
> > Hey guys,
> >
> > How do I compute the distance between say two 2x 2 matrices A and B using matlab?
> > thanks
>
> norm(A-B)
> norm(A-B,'fro')
> etc...
>
> Bruno
There are many ways to compute the distance! if by distance you mean the distance determine the differences between elements the two (comparing them like in image processing information theory) , you can use pdist or pdist2.
Otherwise you can just do as Bruno has mentioned.
|