|
From: | Doug Stewart |
Subject: | Re: Octave question: Integrating .dat files in functions? |
Date: | Tue, 13 Dec 2011 06:00:36 -0500 |
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.
_______________________________________________
Help-octave mailing list
address@hidden
https://mailman.cae.wisc.edu/listinfo/help-octave
[Prev in Thread] | Current Thread | [Next in Thread] |