Path: news.mathworks.com!not-for-mail
From: "S.David S." <miscwz@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: text to integer conversion
Date: Thu, 16 Aug 2007 09:12:49 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 18
Message-ID: <fa14eh$1dq$1@fred.mathworks.com>
References: <fa048u$5ls$1@fred.mathworks.com>
Reply-To: "S.David S." <miscwz@yahoo.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 1187255569 1466 172.30.248.37 (16 Aug 2007 09:12:49 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 16 Aug 2007 09:12:49 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1063483
Xref: news.mathworks.com comp.soft-sys.matlab:424115


"Ralph " <rb@bennett-eng.com> wrote in message
<fa048u$5ls$1@fred.mathworks.com>...
> 
> I am a beginning MatLab programmer,
> 
> I have the string: 
> &#8220;RTop=0 LTop=35 LBot=36 RBot=25 &#8220;
> I want to convert the 0, 35, 36 & 25 values to independent
> integers.  
> 
> I used the command: 
> &#8220;headCountPos = findstr(textLine,'=');&#8221;
> to determine the position in the string where each value
> starts but don&#8217;t know how to extract and convert each value
> to an integer.  Each value will never exceed 99.
> 

help with strread.