help-octave
[Top][All Lists]
Advanced

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

input from stdin


From: Bertrand Roessli
Subject: input from stdin
Date: Fri, 15 Jun 2007 09:24:43 +0200

Hello,

it is not clear to me why I get the following output when I enter 
values directly from a terminal

octave:1> [as,bs,cs,aa,bb,cc,count]=fscanf(stdin,'%f %f %f %f %f %
f',"C")
1 2 3 4 5 6
4 
as = 1
bs = 2
cs = 3
aa = 4
bb = 5
cc = 6
count = 6
octave:2> [as,bs,cs,aa,bb,cc,count]=fscanf(stdin,'%f %f %f %f %f %
f',"C")
1 2 3 4 5 6
as = 4
bs = 1
cs = 2
aa = 3
bb = 4
cc = 5
count = 6


I am using version 2.1.73

Thank you,

B.

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

Tel.: +41 56 310 44 01



reply via email to

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