|
From: | Michael Grossbach |
Subject: | Re: Getting a matlab proggie to work |
Date: | Thu, 29 May 2008 21:25:12 +0200 |
User-agent: | Thunderbird 2.0.0.14 (Windows/20080421) |
Praedor Atrebates wrote: snip-----------------------
In the program file, line 37, column 10 falls in this portion of code: filnam = [fname, num2str(trackname,'%5.4f')]; fid=fopen(filnam); [a,b]=fscanf(fid,'%f %f\n',[2 inf]); <--------------this line status = fclose(fid);Given the information I provided above (file names, data format, and the requisite code) can anyone conjure a reason as to why octave refuses to run these simple code files and spits out the error that it does?praedor
As Jaroslav has suggested when he answered your previous question, look into what the variable filnam contains and whether the path it is supposed to hold is a valid one. Then read the help to fopen() which will tell you what fid == -1 means.
HTH, Michael
[Prev in Thread] | Current Thread | [Next in Thread] |