Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: What does m('ABC') do?
Date: Mon, 13 Apr 2009 01:13:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 11
Message-ID: <gru3it$ep4$1@fred.mathworks.com>
References: <gru2dd$tu$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1239585181 15140 172.30.248.37 (13 Apr 2009 01:13:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 13 Apr 2009 01:13:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: news.mathworks.com comp.soft-sys.matlab:532211

"Preet Desai" <preet.desai.nospam@matchworks.com> wrote in message <gru2dd$tu$1@fred.mathworks.com>...
> I'm trying to figure out how to make graphs with sparse matrices (like shown in the bionformatics functions), but I have no idea what
> 
> m('ABC') = [1 2 3] does. I get a 1x67 matrix with the last three numbers (1,2,3)...
> Where did 67 come from? Please help me out with this... or tell me what to search for, for more information.
> 
> Preet

  Writing m('ABC') = [1 2 3] gives the same results as m([65,66,67]) = [1,2,3];  The values 65, 66, and 67 are the ASCII numerical equivalents of the letter 'A', 'B', and 'C'.  How that relates to your bioinformatics functions I cannot say, except that letters are often used in identifying DNA nucleic acid sequences.

Roger Stafford