saving . . . saved
0
xcos - rfile_f - input format
Title
Question

Hello,

i have to generate a simulation who read textfiles with integer and double types.
My question is: How can i read an file with integer content with the rifle_f block. Wich format have to be used.
In the example is only a format. It looks (3(e10.3,3x)), but its only for exponential.
My textfile looks like:
0
1
2
5
5
5
5
5
5
...
The only way for me to read it, is to modify my file like this
0.0+E01
0.0E+01
0.1E+01
0.2E+01
0.5E+01
0.5E+01
0.5E+01
0.5E+01
0.5E+01
0.5E+01
...
In this case i use the format (3(e10.3,3x)) which is in the example an documentation of scilab given
Can anyone help?
Best regards


Scilab 31-03-17, 3:10 p.m. ebike_dev

Answers:

0

Although not completely correct, try (1((e1.0,2x))) format. See http://www.chem.ox.ac.uk/fortran/format.html to understand what it is.

13-02-18, 4:51 p.m. rupakrokade


Log-in to answer to this question.