Question: fprint command help

hi

I want to have a fprint command which should given me the data in two columns.

I want to modifiy the following command

fprintf(fd,"%f \n",li,sigmai);

this command gives me data in horizental form, i.e.,

0.001000 0.300990 0.600980 0.900970 1.200960 1.500950 1.800940  2.100930
 
But i want it in the follwoing form
 li              sigma
0.001000 0.300990
 0.600980 0.900970
 1.200960 1.500950
 1.800940  2.100930
 

 

Please Wait...