octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #33731] sscanf and fscanf not compatible with


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #33731] sscanf and fscanf not compatible with matlab
Date: Wed, 24 Aug 2011 15:24:14 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101 Firefox/5.0 Iceweasel/5.0

Update of bug #33731 (project octave):

                  Status:                    None => Need Info              

    _______________________________________________________

Follow-up Comment #1:

Please give a precise example that can be used to demonstrate the problem of
returning a list of values instead of a matrix?

I see the following behavior with sscanf:


octave:1> str = '1 2 3 a b c';
octave:2> [a, count, msg, pos] = sscanf (str, '%f')
a =

   1
   2
   3

count =  3
msg = 
pos =  7
octave:3> str(pos)
ans = a


I updated the doc string to mention the "pos" output in this changeset:

http://hg.savannah.gnu.org/hgweb/octave/rev/dfab2a8ca545

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?33731>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]