[scilab-Users] RE: Problem with function fscanfMat

Antoine Monmayrant antoine.monmayrant at laas.fr
Wed Jul 27 09:08:58 CEST 2011


Le 26/07/2011 17:16, CRETE Denis a écrit :
> Hello,
> did you check that your data file does not mix TABs and SPACEs ?
> HTH
> Denis
>
> De : BOUTARD david [mailto:david.boutard-alter at sodern.fr]
> Envoyé : mardi 26 juillet 2011 17:03
> À : users at lists.scilab.org
> Objet : [scilab-Users] Problem with function fscanfMat
>
> Hi,
>
> I have a file *.txt (1014 lines and 1043 rows) to read.
>
> My program is as follows:
>
> FichTxt=uigetfile(["*.txt"],"","Fichier texte",%t);
> temp1=fscanfMat(FichTxt(1));
>
> It works very well with Scilab 5.2. I update Scilab to version 5.3 and use the same program. But It cannot read my files. It is written :
>
> Error 999 - I connot read the files C:\....*.txt
>
> Is there a problem of compatibility between both versions (32 bit or 64 bit for exemple)? I am working with windows XP professionnal.
> If yes where I could change the parameters?
>
> I have tried to use mopen and mfscanf but it is very long compare to mfscanfmat.. Or my program may not be written as it should.
>
> Regards
> David
>
> ______________________________________________________________________
> This email has been scanned by the SODERN Email Security System.
>
> ______________________________________________________________________
>
Can you join the txt file that you have trouble opening?
I can try to open it here to see whether I can reproduce the bug...
fscanfMat is really picky about the file format as it is not supposed to 
open anything other than files created by fprintfMat.
Did you try read_csv? I converted most of my programs to use read_csv 
instead of fscanfMat.

Antoine

Antoine



More information about the users mailing list