David
Posts:
7
Registered:
5/26/12


Re: How to add weights to data matrix
Posted:
Jul 7, 2012 1:50 PM


"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)
Will this function still works if my data increases,.... like 50*4, 50*5, 100*6 etc.
Thanks.

