Path: news.mathworks.com!not-for-mail
From: "David Doria" <daviddoria@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: "mode" function for mixed types
Date: Fri, 30 Nov 2007 22:19:09 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 15
Message-ID: <fiq28t$6qq$1@fred.mathworks.com>
Reply-To: "David Doria" <daviddoria@gmail.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1196461149 7002 172.30.248.37 (30 Nov 2007 22:19:09 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 30 Nov 2007 22:19:09 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1105197
Xref: news.mathworks.com comp.soft-sys.matlab:440286



I have a cell array like

[1] [1] [2] [a] [1] [a] [2] [a]

and i want to determine which is the most frequently
occurring "character" (similar to the "mode" of a strictly
integer array).

Is there a function that will do this? Or do i have to go
through the array and keep track of which things I have
already counted and all that business?

Thanks,

David