[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scanf wierdness
From: |
Alex Stark |
Subject: |
scanf wierdness |
Date: |
Thu, 09 Sep 1999 15:45:35 -0400 |
Help!
I just don't understand this:
octave:79> sscanf('L02282 GGGAACTAGA ACGATTCGCA GTTAATCCTG
CCCTGTTAGA AACATCAGAA','%1s',1)
ans = L
octave:80> sscanf('L02282 GGGAACTAGA ACGATTCGCA GTTAATCCTG
CCCTGTTAGA AACATCAGAA','%2s',1)
ans = L
octave:81> sscanf('L02282 GGGAACTAGA ACGATTCGCA GTTAATCCTG
CCCTGTTAGA AACATCAGAA','%3s',1)
ans = L02282GGGAACTAGA ACGATTCGCAGTTAATCCTG CCCTGTTAGAAACATCAGAA5S
octave:82> sscanf('L02282 GGGAACTAGA ACGATTCGCA GTTAATCCTG
CCCTGTTAGA AACATCAGAA','%4s',1)
ans = L
octave:83> sscanf('L02282 GGGAACTAGA ACGATTCGCA GTTAATCCTG
CCCTGTTAGA AACATCAGAA','%5s',1)
ans = L02282 GGGAACTAGAACGATTCGCAGTTAATCCTGCCCTGTTAGAAACATCAGAA
octave:84> sscanf('L02282 GGGAACTAGA ACGATTCGCA GTTAATCCTG
CCCTGTTAGA AACATCAGAA','%6s',1)
ans = L02282GGGAACTAGA ACGATTCGCA GTTAATCCTG CCCTGTTAGA AACATCAGAA
octave:86> sscanf('L02282 GGGAACTAGA ACGATTCGCA GTTAATCCTG
CCCTGTTAGA AACATCAGAA','%7s',1)
ans = L02282 GGGAACTAGA ACGATTCGCAGTTAATCCTG address@hidden
t
octave:87> sscanf('L02282 GGGAACTAGA ACGATTCGCA GTTAATCCTG
CCCTGTTAGA AACATCAGAA','%8s',1)
ans = L
octave:88> version
ans = 2.0.14
Any ideas?
(Linux with Redhat rpm:
Name : octave Relocations: /usr
Version : 2.0.14 Vendor: Red Hat Software
Release : 1 Build Date: Fri May 7
22:11:00 1999
Install date: Mon Jul 26 12:54:14 1999 Build Host:
porky.devel.redhat.com
Group : Applications/Engineering Source RPM:
octave-2.0.14-1.src.rpm
)
Thanks,
Alex Stark.
---------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL. To ensure
that development continues, see www.che.wisc.edu/octave/giftform.html
Instructions for unsubscribing: www.che.wisc.edu/octave/archive.html
---------------------------------------------------------------------
- scanf wierdness,
Alex Stark <=