On Thu, 26 Nov 2009, Ignacio Diaz-Emparanza wrote:
I need to save in each iteration of a long loop an, in principle,
unknown number of scalars. I tried saving all them in a matrix and
writing it to disk with 'mwrite', but this is very time consuming
because the matrix is very big...
You could try something like:
set messages off
set echo off
outfile scalars.txt --write
loop i=1..n -q
printf "%.15g\n", some_scalar
endloop
outfile --close
Allin