help-octave
[Top][All Lists]
Advanced

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

Problem using fscanf


From: Utherr13
Subject: Problem using fscanf
Date: Thu, 14 Apr 2011 03:34:20 -0700 (PDT)

I have a file which has integers in a 100x2 matrix. I want to get the second
column and put it in a variable, in which i used a for 1:100, but on the i+1
(from the second) the variable is "[](0x1)"

for i=1:100
                z = fscanf(f,'%d',1);
                a = fscanf(f,"%d",1);
                disp(a);
endfor

--
View this message in context: 
http://octave.1599824.n4.nabble.com/Problem-using-fscanf-tp3449262p3449262.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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