The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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 ]

Posts: 7
Registered: 5/26/12
Re: How to add weights to data matrix
Posted: Jul 7, 2012 1:50 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$>...
> "David " <> wrote in message <jt9pn7$9a$>...
> > 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)

Will this function still works if my data increases,.... like 50*4, 50*5, 100*6 etc.


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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.