msscanf

computidoo ychattah at iai.co.il
Wed Jul 4 15:32:13 CEST 2012


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+s994242n4024503h18 at n3.nabble.com]
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]</user/SendEmail.jtp?type=node&node=4024503&i=0>[hidden email]</user/SendEmail.jtp?type=node&node=4024502&i=0>]
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<http://mailinglists.scilab.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
***********************************************************************************************
Please consider the environment before printing this email
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<http://mailinglists.scilab.org/msscanf-tp4024500p4024502.html>
Sent from the Scilab users - Mailing Lists Archives mailing list archive<http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html> 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<http://mailinglists.scilab.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4024500&code=eWNoYXR0YWhAaWFpLmNvLmlsfDQwMjQ1MDB8LTEzMDczNDM5OTA=>.
NAML<http://mailinglists.scilab.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>


--
View this message in context: http://mailinglists.scilab.org/msscanf-tp4024500p4024504.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20120704/658b7290/attachment.htm>


More information about the users mailing list