Hello Mikael,
To save the ox output into a .txt (or another ascii extension) file I use:
//************************************//
// Priting a matrix for example
fileout = fopen("output.txt","w");
output = rann(10,10); // 10 x 10 Standart normal random data.
for( i=0; i<10; i++){
for( j=0; j<10; j++){
fprint(fileout, output[i][j]," ");
}
fprint(fileout,"/n");
}
//************************************//
«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»
Leonardo Soares Bastos
Assistente de Pesquisa
IPEA - Instituto de Pesquisa Econômica Aplicada
Rio de Janeiro - RJ - Brasil
[log in to unmask]
www.ipea.gov.br
> -----Mensagem original-----
> De: The ox-users list is aimed at all Ox users
> [mailto:[log in to unmask]]Em nome de Mikael PETITJEAN
> Enviada em: quinta-feira, 30 de setembro de 2004 07:09
> Para: [log in to unmask]
> Assunto: how to save the ox output window using code lines
>
>
> Dear Ox-players,
>
> I am trying to automatically save (using some code lines) the
> contents (i.e.
> the text) of the ox ouput window into a .txt file. Guess
> what? I cannot.
>
> Any bright idea (or not so bright) most welcome!
>
> Many thanks.
>
> Mikael Petitjean
> CIM-ICM Reasearch Fellow
> CeReFiM, FUNDP, University of Namur
> Belgium
>
|