help-octave
[Top][All Lists]
Advanced

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

sscanf parameter size = Inf


From: address@hidden
Subject: sscanf parameter size = Inf
Date: Wed, 18 Jul 2007 10:59:10 +0000 (GMT)

Hi all

I searched in the archives (nabble) for this problem, but I 
couldn't found
a solution.

I tried to read an unknown amount of numers in a text line
with sscanf, but it returns only the first number..

example:
=======

strLine = fgetl(fid);
## strLine e.g.: "1.2345 2.1345 3.1234 5.1234"
## delimiter is a simple space sign!
[vals count] = sscanf(strLine,"%f","Inf");

If I read in the octave manual, page 162, this should read
in a vector with 4 numbers, save this in vals and in count should 
be written
the number 4

Where is the misunderstanding ?
thanks for any help


reply via email to

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