[Scilab-users] Put .txt data in matrix

Serge Steer serge.steer at inria.fr
Wed Dec 11 21:18:57 CET 2013


The fscanfMat function should do the job
Serge Steer
----- Mail original -----
> De: "simon_37" <simmart37 at gmail.com>
> À: users at lists.scilab.org
> Envoyé: Mercredi 11 Décembre 2013 16:12:48
> Objet: [Scilab-users] Put .txt data in matrix
> 
> Hi everybody,
> 
> I want to extract data from .txt in matrix for plot a graphic.
> Unfortunaly files .txt have some headers
> For example :
> 		Constante de temps : 2Nombre de cycles : 2
>  ms
> Sensibilité : 100 microV
> Tension AC de lecture : 1.000000E+3mV
> Fréquence AC de lecture : 3.700000E+0kHz
> A min : -5.000000E+0 V
> A max : 5.000000E+0 V
> Pas de tension : 100.000000E-3 V
> Durée totale du cycle : 150.000000E+0 ms
> Durée de l'impulsion de tension : 150.000000E+0 ms
> Commentaires : d:\labview\20131125_161108_LL072
> Informations sur la pointe :
> Colonnes 1 et 2 : X,Y de AIO, colonnes 3 et 4 : voies X,Y de AI1
> /end
> 
> 0.000	2.848	0.000	0.628
> 0.100	2.535	0.100	0.733
> 0.200	3.562	0.200	1.021
> 0.300	3.111	0.300	0.620
> 0.400	2.746	0.400	0.693
> 0.500	2.739	0.500	0.860
> 0.600	3.001	0.600	1.126
> 0.700	2.306	0.700	0.967
> 0.800	2.452	0.800	0.706
> 0.900	2.551	0.900	1.046
> 1.000	3.865	1.000	0.966
> 1.100	2.161	1.100	0.987
> ....
> 
> I already use the function read or functions mopen and mgetl and it
> doesn't
> work...
> I search the mean to begin the read at line number 15 of my file.
> I am trap.
> 
> Regards
> Simon.
> 
> 
> 
> 
> --
> View this message in context:
> http://mailinglists.scilab.org/Put-txt-data-in-matrix-tp4028011.html
> Sent from the Scilab users - Mailing Lists Archives mailing list
> archive at Nabble.com.
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
> 



More information about the users mailing list