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$>
References: <gru2dd$tu$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: 1239585181 15140 (13 Apr 2009 01:13:01 GMT)
NNTP-Posting-Date: Mon, 13 Apr 2009 01:13:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: comp.soft-sys.matlab:532211

"Preet Desai" <> wrote in message <gru2dd$tu$>...
> 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