[scilab-Users] RE: msscanf

ycollette.nospam at free.fr ycollette.nospam at free.fr
Wed Jul 4 15:36:50 CEST 2012


Hello,

Maybe you can try to have a look at the 'read' command. It supports fortran formatting.
Otherwise, you will need to write your own fortran / c gateway function to read these kind of special formating.

YC

----- Mail original -----
De: "computidoo" <ychattah at iai.co.il>
À: users at lists.scilab.org
Envoyé: Mercredi 4 Juillet 2012 15:32:13
Objet: [scilab-Users] RE: msscanf




Sorry but no, 

I fond that if I take only " 05777.6319-69.400954.30913 0" and I write 

Msscanf(1,l,'%c %f %f %f %f') 

I get 

0 5777.6319 -69.40095 4.30913 0 



Can I define only to read 4 digit after the point (I tried %.4f and its not working) 








From: Adrien Vogt-Schilb [via Scilab / Xcos - Mailing Lists Archives] [mailto:ml-node+ [hidden email] ] 
Sent: Wednesday, July 04, 2012 3:26 PM 
To: Yehonatan Chattah 
Subject: RE: msscanf 




Can't you ask patran mesh to produce well formated output? 

On 04/07/2012 14:53, computidoo wrote: 




Like this line(after it) I have around 500 lines so I read each line 

And save the relevant data 

The line came from patran mesh 






From: Adrien Vogt-Schilb [via Scilab / Xcos - Mailing Lists Archives] [ [hidden email] [hidden email] ] 
Sent: Wednesday, July 04, 2012 1:58 PM 
To: Yehonatan Chattah 
Subject: Re: msscanf 




On 04/07/2012 13:52, computidoo wrote: 

I have a line that i want to read GRID     1          05777.6319-69.400954.30913      0 the problem is that the numbers are connected. (the line mean GRID 1 0 5777.6319 -69.4009 54.30913   0) I tried l=mgel(fid,1); Tline=msscanf(1,l,'%s %f %.4f %.4f %.4f %.0f); and i get an error BR computidoo 

Where does the line come from? 
The problem should definitively be fixed upstream 








If you reply to this email, your message will be added to the discussion below: 

http://mailinglists.scilab.org/msscanf-tp4024500p4024501.html 


To unsubscribe from msscanf, click here . 
NAML 


*********************************************************************************************** 


Please consider the environment before printing this emai l 


The information contained in this communication is proprietary to Israel Aerospace Industries Ltd. and/or third parties, may contain confidential or privileged information, and is intended only for the use of the intended addressee thereof. 


If you are not the intended addressee, please be aware that any use, disclosure, distribution and/or copying of this communication is strictly prohibited. If you receive this communication in error, please notify the sender immediately and delete it from your computer. 


Thank you. 





View this message in context: RE: msscanf 
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. 










If you reply to this email, your message will be added to the discussion below: 

http://mailinglists.scilab.org/msscanf-tp4024500p4024503.html 


To unsubscribe from msscanf, click here . 
NAML 

View this message in context: RE: msscanf 
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. 



More information about the users mailing list