help-octave
[Top][All Lists]
Advanced

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

AW: sscanf parameter size = Inf


From: address@hidden
Subject: AW: sscanf parameter size = Inf
Date: Wed, 18 Jul 2007 11:04:41 +0000 (GMT)

Ok, I could it figure out

[vals count] = sscanf(strLine,"%f") # this will do what I'm 
searching for

but if I write
[vals count] = sscanf(strLine,"%f","Inf");
this doesn't do what I thought !! Is this still a bug?


>----Ursprüngliche Nachricht----
>Von: address@hidden
>Datum: 18.07.2007 12:59
>An: "help list octave"<address@hidden>
>Betreff: sscanf parameter size = Inf
>
>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
>_______________________________________________
>Help-octave mailing list
>address@hidden
>https://www.cae.wisc.edu/mailman/listinfo/help-octave
>





reply via email to

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