[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sscanf
From: |
Dimitri Maziuk |
Subject: |
Re: sscanf |
Date: |
Fri, 16 Nov 2012 16:44:36 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.10) Gecko/20121030 Thunderbird/10.0.10 |
On 11/16/2012 04:37 PM, Ben Abbott wrote:
> The problem appears to be with the float.
>
> [row, cnt, err] = sscanf (str, "%4d %1s %4s %8f")
> row =
>
> 1.0000
> 77.0000
> 72.0000
> 69.0000
> 2.1400
Yes, but why is it not returning
1
"M"
"HE"
2.1400
???
Anyway, the format string is read from the input file that I don't
control (http://spin.niddk.nih.gov/NMRPipe/table/csObs.tab) so this is
academic: if "8.3" doesn't work then sscanf() doesn't work as far as I'm
concerned.
--
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu
signature.asc
Description: OpenPGP digital signature
- sscanf, Dimitri Maziuk, 2012/11/16