From help-request at octave dot org Tue Apr 5 05:10:11 2005 Subject: Re: sscanf From: Miquel Cabanas To: bertrand roessli Cc: help at octave dot org Date: Tue, 05 Apr 2005 12:10:01 +0200 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 (Miquel dot Cabanas at uab dot es) ------------------------------------------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 -------------------------------------------------------------