[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Octave question: Integrating .dat files in functions?
From: |
StudentinCrisis |
Subject: |
Re: Octave question: Integrating .dat files in functions? |
Date: |
Tue, 13 Dec 2011 01:40:43 -0800 (PST) |
I've also tried this code but it doesn't work:
fid = fopen('wierd.dat','r');
numInts = fscanf(fid, '%d', 1);
for(i = 1: numInts)
x = fscanf(fid, '%d', 1);
sum = sum + x;
end
sum
it says "error: Invalid call to sum."
--
View this message in context:
http://octave.1599824.n4.nabble.com/Octave-question-Integrating-dat-files-in-functions-tp4189552p4189711.html
Sent from the Octave - General mailing list archive at Nabble.com.