help-octave
[Top][All Lists]
Advanced

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

Re: How to fix this error?


From: Eric Rosenberg
Subject: Re: How to fix this error?
Date: Wed, 22 Jul 2009 19:53:15 -0700

can anyone tell me how to unsubscribe from this listserv?
 
thanks.
----- Original Message -----
Sent: Wednesday, July 22, 2009 7:47 PM
Subject: How to fix this error?

Hi all,

I am trying to run a mfile in octave.  I am reading a bunch of files in this form

ratio= ['t10  ';'t11  ';'t12  ';'t13  ';'t14  ';'t15  ';'t16  ';'t17  ';'t18  ';'t19  ';          't110 ';'t111 ';'t1115';'t112 ';'t113 ';'t114 ';'t115 ';'t116 ';'t117 ';'t118 ';'t119 ';          't120 '];

where t10.... are data files containing 3 columns

I give this command

[nn,mm]=size(ratio)

for i=1:nx (nx=22)
    name = strcat(ratio(i:nn:nn*mm),'.dat');

    fid=fopen(name,'r');

    A1x = fscanf(fid,'%f',[3,inf]);
    A1x = A1x';

I get the following error

error: fscanf: invalid stream number = -1


I know this is something related to fscanf. If anybody has any idea please let me know. Thanks

Ramesh
 


_______________________________________________
Help-octave mailing list
address@hidden
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

reply via email to

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