Function fitting

Hi. How can I change data into the format, in which the sine.txt is formed?


Hey @_risto,

Have you tried numpy’s savetxt function? You might have to specify the delimiter (as far as I can see sine.txt has a whitespace as delimiter).

Otherwise, you can hand-code any format using the standard python write functionality.

1 Like