Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: sscanf
Date: Mon, 27 Oct 2008 13:46:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 16
Message-ID: <ge4gmp$r05$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 1225115161 27653 172.30.248.37 (27 Oct 2008 13:46:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 27 Oct 2008 13:46:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1550339
Xref: news.mathworks.com comp.soft-sys.matlab:497424


HI, I have a chain of characters string + number delimited by  semi '; ' as following

line ='name.rrr; ; 78;7;6;;string;;0'

first I replacethe ';' by a tab
line = regexprep(line,';','\t')
Then, I try to use 
[A, count, errmsg, nextindex]=sscanf(line, '%s, %d,%d,%d,%d,%s,%s,%s,%d') 
but I was not able to retrieve those different data. I get the name.rr in A but in error , I get matching failure in format. I don't understand why it doesnt retrieve other data. 


  Thanks

  Joe