Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Distance between vectors, and does “bsxfun” do a
nything here?

Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Abder-Rahman

Posts: 123
Registered: 7/4/08
Distance between vectors, and does “bsxfun” do a
nything here?

Posted: Feb 23, 2013 8:55 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply



Say we have the following matrix x:

x = [1 4 3; 6 4 3; 6 9 3; 2 4 3; 5 4 0; 5 3 1; 6 4 7];

And, say that from that matrix, we selcted the following pixels to be our points of interest:

p = [4 6 9 0];

For each element in x, say we have a degree of membership that ranges from 0-1 and which represents how much oes that element belong to some region.

Say, also, that we have some elements as a vector from that region of interest and which were set to 1 as follows:

C = [1 1 1 1 1 1 1];

Provided that the degree of membership values of those elements = 1

Let us assume that the degree of membership values of each element represents the feature of that element, my question is: How can we select the point p that minimizes the distance between x & C?

Does bsxfun help in anyway here?

Thanks.



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.