Path: news.mathworks.com!not-for-mail
From: "Sadik " <sadik.hava@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Replacing Numeric Vector With Strings
Date: Wed, 31 Mar 2010 12:24:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 12
Message-ID: <hovet4$eoe$1@fred.mathworks.com>
References: <hove4m$3jj$1@fred.mathworks.com>
Reply-To: "Sadik " <sadik.hava@gmail.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1270038244 15118 172.30.248.35 (31 Mar 2010 12:24:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 31 Mar 2010 12:24:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1666517
Xref: news.mathworks.com comp.soft-sys.matlab:622235

Hi James,

A = [1, 2, 2, 2, 3, 2];
names = {'Bob', 'Jim', 'John'};

so

names(A)

is going to give you the cell array you are looking for. 

Best.