Path: news.mathworks.com!newsfeed-00.mathworks.com!news.kjsl.com!feeder.erje.net!us.feeder.erje.net!newsfeed.straub-nv.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Extract numbers from table containing text and numbers
Date: Sat, 02 Feb 2013 17:37:59 -0600
Organization: Aioe.org NNTP Server
Lines: 20
Message-ID: <kek80l$tq3$2@speranza.aioe.org>
References: <kef9u8$seu$1@newscl01ah.mathworks.com> <kejen0$ki8$1@newscl01ah.mathworks.com> <kejjit$210$1@speranza.aioe.org> <kejrbu$3t4$1@newscl01ah.mathworks.com>
NNTP-Posting-Host: npaXo/Tszhbj6XfODEj34A.user.speranza.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20
X-Notice: Filtered by postfilter v. 0.8.2
Xref: news.mathworks.com comp.soft-sys.matlab:788058

On 2/2/2013 2:02 PM, Stan wrote:
> Okay so I re-tried with a direct copy-paste. It did not work. The
> leading space, as you mentioned, does not affect it.
>
> I'm on Win 32. Unfortunately, I do not have access to R2012b.
>
> Is there a way to read in that string using some other function (fscanf,
> etc.)?

I don't have time at the moment but there's always textread() which has 
much of the same functionality as textscan()...it requires a file, 
though, although I think I recall your original is from a file so that 
shouldn't be a problem.

There's always a way w/ fscanf() other than having to deal w/ the 
headerlines explicitly, etc., etc., ...  fgetl() and a loop is one way 
to do that, of course.

--