help-octave
[Top][All Lists]
Advanced

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

Re: sscanf


From: Miquel Cabanas
Subject: Re: sscanf
Date: Tue, 05 Apr 2005 12:10:01 +0200
User-agent: Mutt/1.3.28i

hi,

which version of octave are you running, because it works with the
one I have (2.1.35, waiting for the debian stable upgrade) which is
well behind the recommended one.

> [c,v]=sscanf(a,'%f%100c',"C")
c = 1
v =  2 dsf sdaf

as for the '%f%100s' format, '%100s' matches a sequence of at most
100 non-white-space characters (see man scanf if in unix/linux).
Hence, the first white space breaks the sequence and leaves you
with v = 2.

Miquel


-- 
Miquel E Cabanas ------------------------------------------------------
SeRMN, Universitat Autonoma de Barcelona (address@hidden)
------------------------------------------o-oo--ooo---ooo--oo-o--------



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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