Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!v65g2000hsc.googlegroups.com!not-for-mail
From:  Randy Poe <poespam-trap@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: HELP!!!
Date: Mon, 12 Nov 2007 11:20:24 -0800
Organization: http://groups.google.com
Lines: 36
Message-ID: <1194895224.039613.88880@v65g2000hsc.googlegroups.com>
References: <fha8l9$f1l$1@fred.mathworks.com>
NNTP-Posting-Host: 192.35.37.20
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Trace: posting.google.com 1194895224 20617 127.0.0.1 (12 Nov 2007 19:20:24 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 12 Nov 2007 19:20:24 +0000 (UTC)
In-Reply-To: <fha8l9$f1l$1@fred.mathworks.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4,gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.1 squid.atl.lmco.com:3128 (squid/2.5.STABLE14)
Complaints-To: groups-abuse@google.com
Injection-Info: v65g2000hsc.googlegroups.com; posting-host=192.35.37.20;
Xref: news.mathworks.com comp.soft-sys.matlab:437148


On Nov 12, 2:13 pm, "jenya polyakova" <jeny...@yahoo.com> wrote:
>  I have three matrices a b and c of size 10x195
> I need to perform some classification on the first raw of
> these matrices. For example, k-means clustering would work
> just fine. That is I would map really the first raw of
> each matrix into 3-D space, and perform the classification.
>
> For each cluster I need then to calculate the mean by
> averaging over the values of the 11'th raw of matrix
> a,band c.
> Note, I do not have the kmeans in my matlab. Any
> suggestions. THANKS

Look up "k-means clustering" and implement it? It's
a pretty simple algorithm. Lots of links available on
line, some with code.

Actually I'd be surprised if somebody hasn't developed
Matlab code to share...

Yes. Doing a google search for "k-means clustering
Matlab" turns up numerous links, such as this one:

http://people.revoledu.com/kardi/tutorial/kMean/matlab_kMeans.htm

and this "fuzzy k-means" at the File Exchange:
http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=4353&objectType=File

and this one which looks like ordinary k-means:
http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=5324&objectType=file

If you do a search at the File Exchange for "k means" or
for "clustering" you may find other useful codes as well.

           - Randy