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: How to add weights to data matrix
Replies: 6   Last Post: Jul 7, 2012 2:13 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
David

Posts: 7
Registered: 5/26/12
Re: How to add weights to data matrix
Posted: Jul 7, 2012 1:55 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Matt J" wrote in message <jt9r2f$4jd$1@newscl01ah.mathworks.com>...
> "David " <munnavinnu@gmail.com> wrote in message <jt9pn7$9a$1@newscl01ah.mathworks.com>...
> > Hi,
> >
> > I have some data in a matrix with size 50*2. Now i want to add weights to my data so that I can have some good clustering of data.
> >
> > How can I add weights to data??

>
> Assuming your weights is 50x1,
>
> weighted_data = bsxfun(@times, weights, data50x2)



I don't have the weights, I want find them.



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.