|
From: | Ramesh Yapalparvi |
Subject: | How to fix this error? |
Date: | Wed, 22 Jul 2009 19:47:12 -0700 (PDT) |
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 |
[Prev in Thread] | Current Thread | [Next in Thread] |