[Top][All Lists]

[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


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 E Cabanas ------------------------------------------------------
SeRMN, Universitat Autonoma de Barcelona (address@hidden)

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

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

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