Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Emulating Find by using Explicit Looping
Date: Mon, 9 Nov 2009 00:41:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 3
Message-ID: <hd7oet$dsm$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257727261 14230 172.30.248.38 (9 Nov 2009 00:41:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 9 Nov 2009 00:41:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2081392
Xref: news.mathworks.com comp.soft-sys.matlab:583444


So I want to write a function that will display the number of time each letter of the alphabet appear in a given vector composed of random numbers. I am trying to do this using the for/while loop commands and I do not wish to use the findstr or histogram built-in functions. I am not sure how to approach this; could somebody please lean me towards the right direction. I guess I should assign for to a given interval 1:26 and then use if to see if the letter appears as the interval is run through. 

Thanks!