help-octave
[Top][All Lists]
Advanced

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

Re: sscanf


From: bertrand roessli
Subject: Re: sscanf
Date: Tue, 5 Apr 2005 05:54:26 -0500

Hi,

I am using GNU Octave, version 2.1.57 (i686-pc-linux-gnu). 
so is it a kind of a bug?

Bertrand

On Tue, 5 Apr 2005, Miquel Cabanas wrote:

> 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
> 
> 
> 

-- 
Dr. Bertrand Roessli
Laboratory for Neutron Scattering
ETHZ and Paul Scherrer Institut
CH-5232 Villigen, PSI



-------------------------------------------------------------
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]