Re: [Scilab-users] Put .txt data in matrix

2013-12-11 Thread simon_37
It doesn't work to, I already try it.
It return me error 999



--
View this message in context: 
http://mailinglists.scilab.org/Put-txt-data-in-matrix-tp4028011p4028013.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Put .txt data in matrix

2013-12-11 Thread Dang, Christophe
Hello, 

 De : simon_37

 [...fscanfMat...]
 It doesn't work to, I already try it.
 It return me error 999

I tried it from the data you gave (copy/paste to a .txt file)
and it worked.

I don't know what error 999 is, it is not in the table
http://help.scilab.org/docs/5.4.1/en_US/error_table.html

Maybe you could send the text file atached so we can see what happens.

Best regards.

-- 
Christophe Dang Ngoc Chan
Mechanical calculation engineer

__

This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error), please 
notify the sender immediately and destroy this e-mail. Any unauthorized 
copying, disclosure or distribution of the material in this e-mail is strictly 
forbidden.
__
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Put .txt data in matrix

2013-12-11 Thread Antoine Monmayrant

Le 11/12/13 16:12, simon_37 a écrit :

Hi everybody,


Hi Simon,

Can you send us the raw txt file to see what we can do?
Usually the new csv functions should work, the only difficulty is being 
able to understand how to use the regular expression system to get rid 
of the comments.


Cheers,

Antoine


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.00E+3mV
Fréquence AC de lecture : 3.70E+0kHz
A min : -5.00E+0 V
A max : 5.00E+0 V
Pas de tension : 100.00E-3 V
Durée totale du cycle : 150.00E+0 ms
Durée de l'impulsion de tension : 150.00E+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@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users



___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Put .txt data in matrix

2013-12-11 Thread Serge Steer

The fscanfMat function should do the job
Serge Steer
- Mail original -
 De: simon_37 simmar...@gmail.com
 À: users@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.00E+3mV
 Fréquence AC de lecture : 3.70E+0kHz
 A min : -5.00E+0 V
 A max : 5.00E+0 V
 Pas de tension : 100.00E-3 V
 Durée totale du cycle : 150.00E+0 ms
 Durée de l'impulsion de tension : 150.00E+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@lists.scilab.org
 http://lists.scilab.org/mailman/listinfo/users
 
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] HDF5 support

2013-12-11 Thread Gary Nelson
I recently saw a thread about the HDF5 file format.  I was not aware that 
Scilab supported this.  Can someone point me to documentation.

Thanks


Gary Nelson
gnelson.zyn...@gmail.com





___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] HDF5 support

2013-12-11 Thread Antoine Monmayrant
 
Le Jeudi 12 Décembre 2013 01.39 CET, Gary Nelson gnelson.zyn...@gmail.com a 
écrit: 
 
 I recently saw a thread about the HDF5 file format.  I was not aware that 
 Scilab supported this.  Can someone point me to documentation.
 
 Thanks
 
 
 Gary Nelson
 gnelson.zyn...@gmail.com
 
 
 
 
 
 
Hi Gary,

You can have a look here:
http://help.scilab.org/docs/5.5.0-beta-1/en_US/section_2963681af984e36e26630a22883e3630.html
(Scilab Help  HDF5 Management)

There is also a mininimalist demo (that I wrote) where you can get the source 
code to open and retrieve a dataset in a hdf5 file.

Cheers,

Antoine
 
 

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users